rockingmaster / openintents

Automatically exported from code.google.com/p/openintents
0 stars 0 forks source link

OI Shopping List: NullPointerException in ShoppingActivity.insertItemsFromExtras() #389

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Crash:
java.lang.NullPointerException
 at org.openintents.shopping.ui.ShoppingActivity.insertItemsFromExtras(ShoppingActivity.java:1248)

Platforms:
Other

Stack traces:
v1.4
22.08.2011 13:59:57

java.lang.NullPointerException
 at org.openintents.shopping.ui.ShoppingActivity.insertItemsFromExtras(ShoppingActivity.java:1248)
 at org.openintents.shopping.ui.ShoppingActivity.fillItems(ShoppingActivity.java:2416)
 at org.openintents.shopping.ui.ShoppingActivity.access$800(ShoppingActivity.java:120)
 at org.openintents.shopping.ui.ShoppingActivity$11.onItemSelected(ShoppingActivity.java:1134)
 at android.widget.AdapterView.fireOnSelected(AdapterView.java:864)
 at android.widget.AdapterView.access$200(AdapterView.java:42)
 at android.widget.AdapterView$SelectionNotifier.run(AdapterView.java:830)
 at android.os.Handler.handleCallback(Handler.java:587)
 at android.os.Handler.dispatchMessage(Handler.java:92)
 at android.os.Looper.loop(Looper.java:143)
 at android.app.ActivityThread.main(ActivityThread.java:5068)
 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:858)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
 at dalvik.system.NativeStart.main(Native Method)

Original issue reported on code.google.com by peli0...@googlemail.com on 25 Aug 2011 at 12:27

GoogleCodeExporter commented 8 years ago

Original comment by peli0...@googlemail.com on 25 Aug 2011 at 12:27

GoogleCodeExporter commented 8 years ago
Hi peli,

I'm newer to openintents project and I hope to fix this bug as my first step. 
Can you please advice me that, in which action this error was raised ?

Thanx
Nalaka

Original comment by nalak...@gmail.com on 18 Dec 2011 at 5:50

GoogleCodeExporter commented 8 years ago
Here are the user comments from Market.

It seems like a problem in connection with Barcode OI Plugin: 
http://www.openintents.org/en/node/679 
https://market.android.com/details?id=org.openintents.barcodescanner

All applying to versions 1.4 and 1.4.1. (so far no reports for 1.5)

--------------------------------------------------------------------------------
After scanning barcode, system appears unchanged. No evidence that barcode was 
scanned. Start new list, scan barcode, application force closes. Upon 
applivation restart, scanned item is now in list.
--------------------------------------------------------------------------------
tried to change lists
--------------------------------------------------------------------------------
crashes every barcode result accepted.
--------------------------------------------------------------------------------
does not add item after bar code scan
--------------------------------------------------------------------------------
Vrashed when scanned barcode
--------------------------------------------------------------------------------
more problems scanning. bar codes
--------------------------------------------------------------------------------
crashed scanning bar codes
--------------------------------------------------------------------------------
forceclose after scanning items
--------------------------------------------------------------------------------
programmet stängs av hela tiden när man stannar barcodes !
--------------------------------------------------------------------------------
Crashes every other barcode, deleting
--------------------------------------------------------------------------------
FC while switching shopping list. after nth barcode scan did not get added to a 
list
--------------------------------------------------------------------------------
barcode issues still
--------------------------------------------------------------------------------
Force stop when scanning carbide
--------------------------------------------------------------------------------
When I scan am item, it does not appear on the shopping list. I try to open 
anothet list but it forces closed
--------------------------------------------------------------------------------
Used upc scanner & it foreclosed
--------------------------------------------------------------------------------
when the scanner launched in the list read an listed item the list crash and 
stop the aplications
--------------------------------------------------------------------------------
scanned a notes book and it shut off
--------------------------------------------------------------------------------
Trying to scan a bar code.
--------------------------------------------------------------------------------
trying to use Baroda scanner. will not work.
--------------------------------------------------------------------------------
Trying to scan a bar code.
----------------

--------------------------------------------------------------------------------
v1.4.1:

java.lang.NullPointerException
 at org.openintents.shopping.ui.ShoppingActivity.insertItemsFromExtras(ShoppingActivity.java:1248)
 at org.openintents.shopping.ui.ShoppingActivity.fillItems(ShoppingActivity.java:2416)
 at org.openintents.shopping.ui.ShoppingActivity.access$800(ShoppingActivity.java:120)
 at org.openintents.shopping.ui.ShoppingActivity$10.onItemSelected(ShoppingActivity.java:1092)
 at org.openintents.shopping.ui.tablet.ShoppingListFilterFragment.onListItemClick(ShoppingListFilterFragment.java:59)
 at android.support.v2.app.ListFragment$2.onItemClick(ListFragment.java:58)
 at android.widget.AdapterView.performItemClick(AdapterView.java:282)
 at android.widget.AbsListView.performItemClick(AbsListView.java:1037)
 at android.widget.AbsListView$PerformClick.run(AbsListView.java:2449)
 at android.widget.AbsListView$1.run(AbsListView.java:3073)
 at android.os.Handler.handleCallback(Handler.java:587)
 at android.os.Handler.dispatchMessage(Handler.java:92)
 at android.os.Looper.loop(Looper.java:132)
 at android.app.ActivityThread.main(ActivityThread.java:4123)
 at java.lang.reflect.Method.invokeNative(Native Method)
 at java.lang.reflect.Method.invoke(Method.java:491)
 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
 at dalvik.system.NativeStart.main(Native Method)

Original comment by peli0...@googlemail.com on 18 Dec 2011 at 10:09

GoogleCodeExporter commented 8 years ago
I want to get clarify following two points.
 - How to deploy the barcode scanner plugin in simulator to recreate the issue?
 - Once we satrted to fixing the bug, can i update the status of the bug or do i need to inform some one ?

Thanx

Original comment by nalak...@gmail.com on 19 Dec 2011 at 4:58

GoogleCodeExporter commented 8 years ago
1) With the emulator only, this issue will be difficult to resolve. One could 
add in ShoppingListDemo the possibility to add barcode results for testing in 
the emulator, but I can not help much now, as we are busy with GCI.
2) Due to GCI, it would be good if you could mention that you work on this 
issue, so that no other student claims this task at the same time.

Original comment by peli0...@googlemail.com on 20 Dec 2011 at 12:01