Quizee60 / foursquared

Automatically exported from code.google.com/p/foursquared
Apache License 2.0
0 stars 0 forks source link

Quick Search Box causes app crash #177

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
0. Enable Foursquare in searchable items in settings
1. From the home screen tap the search widget or press the hardware 
"search" key
2. Type "a" into the search field
3. Scroll to the bottom of the list and select Foursquare from the "More 
results" section
4. Press the on-screen search key next to the search input field

What is the expected output? What do you see instead?
A list of the venues that match the search

What version of the product are you using? On what operating system?
Version 2010-03-12 and the previous version on Nexus One with 
2.1update1

Please provide any additional information below.
Stack trace: E/AndroidRuntime( 2247): java.lang.RuntimeException: Unable 
to start activity 
ComponentInfo{com.joelapenna.foursquared/com.joelapenna.foursquared.
GlobalSearchActivity}: java.lang.NullPointerException: uriString
E/AndroidRuntime( 2247):    at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496
)
E/AndroidRuntime( 2247):    at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
E/AndroidRuntime( 2247):    at 
android.app.ActivityThread.access$2200(ActivityThread.java:119)
E/AndroidRuntime( 2247):    at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
E/AndroidRuntime( 2247):    at 
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 2247):    at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 2247):    at 
android.app.ActivityThread.main(ActivityThread.java:4363)
E/AndroidRuntime( 2247):    at 
java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2247):    at 
java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 2247):    at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.ja
va:860)
E/AndroidRuntime( 2247):    at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/AndroidRuntime( 2247):    at dalvik.system.NativeStart.main(Native 
Method)
E/AndroidRuntime( 2247): Caused by: java.lang.NullPointerException: 
uriString
E/AndroidRuntime( 2247):    at 
android.net.Uri$StringUri.<init>(Uri.java:420)
E/AndroidRuntime( 2247):    at 
android.net.Uri$StringUri.<init>(Uri.java:410)
E/AndroidRuntime( 2247):    at android.net.Uri.parse(Uri.java:382)
E/AndroidRuntime( 2247):    at 
com.joelapenna.foursquared.GlobalSearchActivity.handleIntent(GlobalSearc
hActivity.java:35)
E/AndroidRuntime( 2247):    at 
com.joelapenna.foursquared.GlobalSearchActivity.onCreate(GlobalSearchAc
tivity.java:25)
E/AndroidRuntime( 2247):    at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:104
7)
E/AndroidRuntime( 2247):    at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459
)
E/AndroidRuntime( 2247):    ... 11 more

Original issue reported on code.google.com by jm...@google.com on 22 Mar 2010 at 8:33

GoogleCodeExporter commented 8 years ago
Note that the root of the bug is that the Foursquare app assumes that the data 
field of 
the Intent received from quick search box will be non-null, eg. that an item 
from the 
list of suggestions was selected.

Original comment by jm...@google.com on 22 Mar 2010 at 8:35

GoogleCodeExporter commented 8 years ago
Blame me for that. Sorry. I'll try to fix it ASAP

Original comment by tau...@gmail.com on 28 Mar 2010 at 4:38