anassfiqhi / google-voice-java

Automatically exported from code.google.com/p/google-voice-java
0 stars 0 forks source link

Null Pointer in Voice.getSettings #34

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Caused by: java.lang.NullPointerException
at java.io.StringReader.<init>(StringReader.java:46)
at gvjava.org.json.JSONTokener.<init>(JSONTokener.java:73)
at gvjava.org.json.JSONObject.<init>(JSONObject.java:311)
at com.techventus.server.voice.datatypes.AllSettings.<init>(AllSettings.java:19)
at com.techventus.server.voice.Voice.getSettings(Voice.java:414)

This came from an Android reported error, so it is difficult to know what 
exactly caused the error.  It seems like an unhandled API error so I just 
wanted to document it.

Original issue reported on code.google.com by malone.j...@gmail.com on 10 Apr 2012 at 2:18

GoogleCodeExporter commented 9 years ago
Caused by: java.lang.NullPointerException
at java.io.StringReader.<init>(StringReader.java:48)
at gvjava.org.json.JSONTokener.<init>(JSONTokener.java:73)
at gvjava.org.json.JSONObject.<init>(JSONObject.java:311)
at com.techventus.server.voice.datatypes.AllSettings.<init>(AllSettings.java:19)
at com.techventus.server.voice.Voice.getSettings(Voice.java:414)
at com.techventus.locations.PhonePreference.setPhones(PhonePreference.java:477)
at com.techventus.locations.PhonePreference.access$2(PhonePreference.java:473)
at 
com.techventus.locations.PhonePreference$4.doInBackground(PhonePreference.java:2
60)
at 
com.techventus.locations.PhonePreference$4.doInBackground(PhonePreference.java:1
)
at android.os.AsyncTask$2.call(AsyncTask.java:185)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
... 4 more

Original comment by malone.j...@gmail.com on 22 May 2012 at 2:43