java.lang.NullPointerException

Attempt to invoke virtual method 'long org.hello.tweetconsumer.Greeting.getProductId()' on a null object reference

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

  • via Stack Overflow by Didem
    ,
  • Stack trace

    • java.lang.NullPointerException: Attempt to invoke virtual method 'long org.hello.tweetconsumer.Greeting.getProductId()' on a null object reference at org.hello.tweetconsumer.MainActivity$HttpRequestTask.onPostExecute(MainActivity.java:107) at org.hello.tweetconsumer.MainActivity$HttpRequestTask.onPostExecute(MainActivity.java:82) at android.os.AsyncTask.finish(AsyncTask.java:651)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.