My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 392: OI Shopping List: NullPointerException in ShoppingActivity.setSelectedListId()
2 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Project Member Reported by peli0...@googlemail.com, Aug 25, 2011
Crash:
OI Shopping List: NullPointerException in ShoppingActivity.setSelectedListId()

Platforms:
Other

User messages:

Stack traces:
v1.4
25.08.2011 11:29:26

java.lang.RuntimeException: Unable to start activity ComponentInfo{org.openintents.shopping/org.openintents.shopping.ShoppingActivity}: java.lang.NullPointerException
 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
 at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
 at android.app.ActivityThread.access$2300(ActivityThread.java:125)
 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
 at android.os.Handler.dispatchMessage(Handler.java:99)
 at android.os.Looper.loop(Looper.java:123)
 at android.app.ActivityThread.main(ActivityThread.java:4627)
 at java.lang.reflect.Method.invokeNative(Native Method)
 at java.lang.reflect.Method.invoke(Method.java:521)
 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:871)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)
 at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
 at org.openintents.shopping.ui.ShoppingActivity.setSelectedListId(ShoppingActivity.java:2191)
 at org.openintents.shopping.ui.ShoppingActivity.onCreate(ShoppingActivity.java:586)
 at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
 ... 11 more

Aug 25, 2011
Project Member #1 peli0...@googlemail.com
If this NullPointerException happens after onCreate, this means that the query in fillListFilter() failed just before that call, which means that something serious happened.

It is not very likely to fix the source of this problem by wrapping the code line by "if (... != null)" - the exception will just be delayed to a later point.

Sep 7, 2013
#2 Nikhil.J...@stu.upes.ac.in
If you allow then ,I would like to work on this piece of code


Sign in to add a comment

Powered by Google Project Hosting