NPE CollectionNameEditDialog in onPause

Bug #1331256 reported by pjv
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Collectionista
New
Undecided
Unassigned

Bug Description

NPE probably because mUri is null.

From bugsense:
java.lang.RuntimeException: Unable to pause activity {net.lp.collectionista/net.lp.collectionista.ui.activities.phones.collections.CollectionNameEditWindow}: java.lang.NullPointerException
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:2949)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:2905)
at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:2883)
at android.app.ActivityThread.access$800(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1226)
at android.os.Handler.dispatchMessage(Handler.java:119)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4856)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:528)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.NullPointerException
at android.content.ContentResolver.acquireProvider(ContentResolver.java:1123)
at android.content.ContentResolver._logged_update(ContentResolver.java:1060)
at android.content.ContentResolver.update(ContentResolver.java:1052)
at net.lp.collectionista.ui.fragments.collections.CollectionNameEditDialog.onPause(Collectionista:274)
at android.support.v4.app.Fragment.performPause(Collectionista:1661)
at android.support.v4.app.FragmentManagerImpl.moveToState(Collectionista:973)
at android.support.v4.app.FragmentManagerImpl.moveToState(Collectionista:1104)
at android.support.v4.app.FragmentManagerImpl.moveToState(Collectionista:1086)
at android.support.v4.app.FragmentManagerImpl.dispatchPause(Collectionista:1898)
at android.support.v4.app.FragmentActivity.onPause(Collectionista:412)
at android.app.Activity.performPause(Activity.java:5323)
at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1278)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:2936)
... 12 more

Related branches

Revision history for this message
pjv (pjv) wrote :

Added an exception to make it clear if mUri is null, have't tried fixing it yet.

Revision history for this message
pjv (pjv) wrote :
Revision history for this message
pjv (pjv) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.