Failure delivering result: java.lang.IllegalArgumentException: CollectionWindow not fully created yet?

Bug #823612 reported by pjv
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Collectionista
Fix Released
Undecided
Unassigned

Bug Description

Live (0.5.0)

java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=3, result=-1, data=Intent { act=com.google.zxing.client.android.SCAN flg=0x80000 (has extras) }} to activity {net.lp.collectionista/net.lp.collectionista.ui.activities.collections.cd.CDCollectionViewWindow}: java.lang.IllegalArgumentException: CollectionWindow not fully created yet?
at android.app.ActivityThread.deliverResults(ActivityThread.java:3734)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:3776)
at android.app.ActivityThread.access$2800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2166)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:144)
at android.app.ActivityThread.main(ActivityThread.java:4937)
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:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IllegalArgumentException: CollectionWindow not fully created yet?
at net.lp.collectionista.util.ScanAddTask.existsProduct(ScanAddTask.java:171)
at net.lp.collectionista.util.ScanAddTask.<init>(ScanAddTask.java:113)
at net.lp.collectionista.util.ItemScanAddTask.<init>(ItemScanAddTask.java:50)
at net.lp.collectionista.ui.activities.collections.cd.CDCollectionViewWindow$MusicCDItemScanAddTask.<init>(CDCollectionViewWindow.java:173)
at net.lp.collectionista.ui.activities.collections.cd.CDCollectionViewWindow.onScanAdd(CDCollectionViewWindow.java:1185)
at net.lp.collectionista.ui.activities.collections.cd.CDCollectionViewWindow.onActivityResult(CDCollectionViewWindow.java:570)
at android.app.Activity.dispatchActivityResult(Activity.java:3931)
at android.app.ActivityThread.deliverResults(ActivityThread.java:3730)
... 11 more

Revision history for this message
pjv (pjv) wrote :

ScanAddTask wasn't taking the collection uri out of the correct intent from the ViewWindow. It should also return false instead of throwing an error. Idem for other Tasks.

Was able to reproduce by searching in a book colection (enter a query and press enter). Then scan-add, and when the barcode returns and the task starts it will FC.

Revision history for this message
pjv (pjv) wrote :

Needs a fix. The whole incoming intents are mismanaged, together with bug #824220.

pjv (pjv)
Changed in collectionista:
status: New → Fix Committed
pjv (pjv)
Changed in collectionista:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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