NPE this.text in onPause when restoring old text for rename

Bug #1301632 reported by pjv on 2014-04-02
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Collectionista
Undecided
Unassigned

Bug Description

Why is this.text null in
            text=new String(this.text); ?

monkey found:

:Switch: #Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10200000;component=net.lp.collectionista/.ui.activities.SplashScreen;end
    // Allowing start of Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=net.lp.collectionista/.ui.activities.SplashScreen } in package net.lp.collectionista
:Sending Touch (ACTION_DOWN): 0:(11.0,267.0)
// CRASH: net.lp.collectionista (pid 4654)
// Short Msg: java.lang.NullPointerException
// Long Msg: java.lang.NullPointerException: Unable to pause activity {net.lp.collectionista/net.lp.collectionista.ui.activities.phones.collections.CollectionNameEditWindow}: java.lang.NullPointerException
// Build Label: samsung/GT-P7510/GT-P7510:4.0.4/IMM76D/UELPL:user/release-keys
// Build Changelist: eng.root.20121017.195315
// Build Time: 1350518027000
// 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:2964)
// at android.app.ActivityThread.performPauseActivity(ActivityThread.java:2920)
// at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:2898)
// at android.app.ActivityThread.access$800(ActivityThread.java:142)
// at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1219)
// at android.os.Handler.dispatchMessage(Handler.java:99)
// at android.os.Looper.loop(Looper.java:137)
// at android.app.ActivityThread.main(ActivityThread.java:4931)
// at java.lang.reflect.Method.invokeNative(Native Method)
// at java.lang.reflect.Method.invoke(Method.java:511)
// at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
// at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:558)
// at dalvik.system.NativeStart.main(Native Method)
// Caused by: java.lang.NullPointerException
// at java.lang.String.<init>(String.java:453)
// at net.lp.collectionista.ui.fragments.collections.CollectionNameEditDialog.onPause(CollectionNameEditDialog.java:253)
// at android.support.v4.app.Fragment.performPause(Fragment.java:1661)
// at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:973)
// at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1104)
// at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1086)
// at android.support.v4.app.FragmentManagerImpl.dispatchPause(FragmentManager.java:1898)
// at android.support.v4.app.FragmentActivity.onPause(FragmentActivity.java:412)
// at android.app.Activity.performPause(Activity.java:5106)
// at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1225)
// at android.app.ActivityThread.performPauseActivity(ActivityThread.java:2951)
// ... 12 more
//
** Monkey aborted due to error.
Events injected: 7797
:Sending rotation degree=0, persist=false
:Dropped: keys=6 pointers=9 trackballs=0 flips=0 rotations=0
## Network stats: elapsed time=167466ms (0ms mobile, 167466ms wifi, 0ms not connected)
** System appears to have crashed at event 7797 of 10000 using seed 8

Related branches

pjv (pjv) wrote :

Added exception to get notified when this.text is null.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers