NPE on 'Show Stop Map' when loading fails
As the display is not set, the getId call fails with an NPE
Submitted by Cardiff Bus Android App on 28 March 2011 at 11:27
Issue Log
java.lang.NullPointerException
at uk.co.qwasson.android.bus.ShowDisplay.onOptionsItemSelected(ShowDisplay.java:228)
at android.app.Activity.onMenuItemSelected(Activity.java:2234)
at com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected(PhoneWindow.java:747)
at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:160)
at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:886)
at com.android.internal.view.menu.IconMenuView.invokeItem(IconMenuView.java:545)
at com.android.internal.view.menu.IconMenuItemView.performClick(IconMenuItemView.java:122)
at android.view.View$PerformClick.run(View.java:8867)
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)
Fixed in java svn rev 479
Log in to post comments