NPE in TabbedMusicSheetItemEditFragment$5.changeCover(TabbedMusicSheetItemEditFragment.java:553)

Bug #1291658 reported by pjv
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Collectionista
In Progress
Medium
pjv

Bug Description

monkey:

// CRASH: net.lp.collectionista.ext.sheet_music (pid 4802)
// Short Msg: java.lang.NullPointerException
// Long Msg: 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.NullPointerException
// at net.lp.collectionista.ui.fragments.items.sheet.music.TabbedMusicSheetItemEditFragment$5.changeCover(TabbedMusicSheetItemEditFragment.java:553)
// at net.lp.collectionista.ui.views.CoverEditorView$CoverEditorListener.setDefaultCover(CoverEditorView.java:228)
// at net.lp.collectionista.ui.fragments.items.sheet.music.TabbedMusicSheetItemEditFragment$MusicSheetItemEditHandler.handleMessage(TabbedMusicSheetItemEditFragment.java:741)
// 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)
//
** Monkey aborted due to error.

Related branches

Revision history for this message
pjv (pjv) wrote :

Added an error in multiple places when we suspect product is null, to find bugs easier in the future. Not fixed yet.

Revision history for this message
pjv (pjv) wrote :
Revision history for this message
pjv (pjv) wrote :

java.lang.RuntimeException: Unable to resume activity {net.lp.collectionista/net.lp.collectionista.ui.activities.phones.items.book.TabbedBookItemEditWindow}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=4, result=-1, data=Intent { dat=content://media/external/images/media/173502 flg=0x1 }} to activity {net.lp.collectionista/net.lp.collectionista.ui.activities.phones.items.book.TabbedBookItemEditWindow}: java.lang.IllegalArgumentException: Product is null in changeCover.
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2790)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2819)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2266)
at android.app.ActivityThread.access$600(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5103)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=4, result=-1, data=Intent { dat=content://media/external/images/media/173502 flg=0x1 }} to activity {net.lp.collectionista/net.lp.collectionista.ui.activities.phones.items.book.TabbedBookItemEditWindow}: java.lang.IllegalArgumentException: Product is null in changeCover.
at android.app.ActivityThread.deliverResults(ActivityThread.java:3367)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2777)
... 12 more Caused by: java.lang.IllegalArgumentException: Product is null in changeCover.
at net.lp.collectionista.ui.fragments.items.book.TabbedBookItemEditFragment$6.changeCover(TabbedBookItemEditFragment.java:602)
at net.lp.collectionista.ui.actions.GetCustomImageContentCoverUiAction.onActivityResult(GetCustomImageContentCoverUiAction.java:73)
at net.lp.actionbarpoirot.actions.UiActionManager.onActivityResult(UiActionManager.java:249)
at net.lp.collectionista.ui.activities.phones.CollectionistaComplicatedWindow.onActivityResult(CollectionistaComplicatedWindow.java:133)
at android.app.Activity.dispatchActivityResult(Activity.java:5322)
at android.app.ActivityThread.deliverResults(ActivityThread.java:3363)
... 13 more

Revision history for this message
pjv (pjv) wrote :

Possibly fixed by changing order in onDestroy().

Changed in collectionista:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → pjv (pjv)
Revision history for this message
BLACKBERRY-ECD5 (gameovermylord-k) wrote :

monkey:

// CRASH: net.lp.collectionista.ext.sheet_music (pid 4802)
// Short Msg: java.lang.NullPointerException
// Long Msg: 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.NullPointerException
// at net.lp.collectionista.ui.fragments.items.sheet.music.TabbedMusicSheetItemEditFragment$5.changeCover(TabbedMusicSheetItemEditFragment.java:553)
// at net.lp.collectionista.ui.views.CoverEditorView$CoverEditorListener.setDefaultCover(CoverEditorView.java:228)
// at net.lp.collectionista.ui.fragments.items.sheet.music.TabbedMusicSheetItemEditFragment$MusicSheetItemEditHandler.handleMessage(TabbedMusicSheetItemEditFragment.java:741)
// 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)
//
** Monkey aborted due to error.

description: updated
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.