1 Replies - 430 Views - Last Post: 31 March 2015 - 08:01 AM

#1 Shaina Gupta   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 30-March 15

Null Object Reference Error

Posted 31 March 2015 - 12:47 AM

gud afternoon,
i am running a project in android studio with database connection of phpmyadmin. when I am trying to run it by doing insertion or selection from the android device, the app has stopped and it shows an error of " Unable to invoke virtual method- Json object(Null object reference). I am helpless to solve this error . Can someone help me to get rid of this?

Thank You.

Attached image(s)

  • Attached Image

Is This A Good Question/Topic? 0
  • +

Replies To: Null Object Reference Error

#2 AKMafia001   User is offline

  • </code.in.dream>
  • member icon

Reputation: 238
  • View blog
  • Posts: 738
  • Joined: 11-June 11

Re: Null Object Reference Error

Posted 31 March 2015 - 08:01 AM

The error is very obvious as you can read it. You are trying to access a JSONObject that is null. Check your code if you are getting any JSON data at all.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1