mattshobe / flightmap

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

Crash when tapping on airport without comms (22CA) #146

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Launch app, get to map view.
2. Pan to aiport 22CA (~ 15nm NE of KSFO)
3. Tap on airport

What is the expected output? What do you see instead?
I expect to see the airport tap card, but the app crashes.  Stack trace follows.

Please use labels and text to provide additional information.
E/AndroidRuntime( 3080): java.lang.RuntimeException: Unable to start activity 
ComponentInfo{com.google.flightmap.android/com.google.flightmap.android.TapcardA
ctivity}: java.lang.NullPointerException
E/AndroidRuntime( 3080):    at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
E/AndroidRuntime( 3080):    at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
E/AndroidRuntime( 3080):    at 
android.app.ActivityThread.access$2300(ActivityThread.java:125)
E/AndroidRuntime( 3080):    at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
E/AndroidRuntime( 3080):    at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 3080):    at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 3080):    at 
android.app.ActivityThread.main(ActivityThread.java:4627)
E/AndroidRuntime( 3080):    at java.lang.reflect.Method.invokeNative(Native 
Method)
E/AndroidRuntime( 3080):    at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 3080):    at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
E/AndroidRuntime( 3080):    at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
E/AndroidRuntime( 3080):    at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 3080): Caused by: java.lang.NullPointerException
E/AndroidRuntime( 3080):    at 
com.google.flightmap.android.CommDisplayManager.getCommsPerCategory(CommDisplayM
anager.java:72)
E/AndroidRuntime( 3080):    at 
com.google.flightmap.android.CommDisplayManager.<init>(CommDisplayManager.java:5
6)
E/AndroidRuntime( 3080):    at 
com.google.flightmap.android.TapcardActivity.initializeTapcardUi(TapcardActivity
.java:155)
E/AndroidRuntime( 3080):    at 
com.google.flightmap.android.TapcardActivity.onCreate(TapcardActivity.java:140)
E/AndroidRuntime( 3080):    at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
E/AndroidRuntime( 3080):    at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
E/AndroidRuntime( 3080):    ... 11 more

Original issue reported on code.google.com by aristi...@google.com on 31 Jan 2011 at 2:43

GoogleCodeExporter commented 9 years ago
Reason for crash: 22CA is a seaplane base in Sausalito, and has no comm 
frequency.  This causes a NPE when TapcardActivity asks CommDisplayManager to 
sort the comms by category.

Renamed summary to be more specific.

Fixed in r519

Original comment by aristi...@google.com on 31 Jan 2011 at 2:53