J-P-Hanafin / mytracks

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

NPE in MapActivity. #562

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
java.lang.NullPointerException
at 
com.google.android.apps.mytracks.MapActivity$1.onCreateContextMenu(MapActivity.j
ava:364)
at android.view.View.createContextMenu(View.java:4221)
at 
com.android.internal.view.menu.ContextMenuBuilder.show(ContextMenuBuilder.java:8
1)
at 
com.android.internal.policy.impl.PhoneWindow$DecorView.showContextMenuForChild(P
honeWindow.java:1890)
at android.view.ViewGroup.showContextMenuForChild(ViewGroup.java:467)
at android.view.ViewGroup.showContextMenuForChild(ViewGroup.java:467)
at android.view.ViewGroup.showContextMenuForChild(ViewGroup.java:467)
at android.view.View.showContextMenu(View.java:2444)
at android.view.View.performLongClick(View.java:2430)
at com.google.android.apps.mytracks.MapActivity.onClick(MapActivity.java:483)
at android.view.View.performClick(View.java:2408)
at android.view.View$PerformClick.run(View.java:8817)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
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)

It is crashing on this line:
if (!dataHub.isRecordingSelected()) {

I think this should be fixed by moving the initializing up above the call to 
super.onResume()

Original issue reported on code.google.com by sandordo...@google.com on 6 Sep 2011 at 3:08

GoogleCodeExporter commented 9 years ago
Does this still happen? (the bug doesn't describe conditions to reproduce)

Original comment by rdama...@google.com on 20 Nov 2011 at 6:54

GoogleCodeExporter commented 9 years ago
No response, closing.

Original comment by rdama...@google.com on 2 Jan 2012 at 7:32