marchica/OpenTripPlanner-for-Android — Issue #1: Uncaught handler error
Author: krpot
Created: 2012-01-10 23:41:57+00:00
State: open

I am trying to run the app however I have the following error:
>
>
> 01-09 14:06:02.555: ERROR/AndroidRuntime(298): Uncaught handler:
> thread main exiting due to uncaught exception
>
> 01-09 14:06:02.655: ERROR/AndroidRuntime(298):
> java.lang.NullPointerException
>
> 01-09 14:06:02.655: ERROR/AndroidRuntime(298): at
> org.osmdroid.views.MapView$Projection.toMapPixels(MapView.java:1071)
>
> 01-09 14:06:02.655: ERROR/AndroidRuntime(298): at
> org.osmdroid.views.MapView$Projection.toPixels(MapView.java:1181)
>
> 01-09 14:06:02.655: ERROR/AndroidRuntime(298): at
> org.opentripplanner.android.MainActivity
> $MapOverlay.draw(MainActivity.java:702)
>
> 01-09 14:06:02.655: ERROR/AndroidRuntime(298): at
> org.osmdroid.views.overlay.OverlayManager.onDraw(OverlayManager.java:108)
>
> 01-09 14:06:02.655: ERROR/AndroidRuntime(298): at
> org.osmdroid.views.MapView.dispatchDraw(MapView.java:827)
>
> 01-09 14:06:02.655: ERROR/AndroidRuntime(298): at
> android.view.ViewGroup.drawChild(ViewGroup.java:1529)
>
> 01-09 14:06:02.655: ERROR/AndroidRuntime(298): at
> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
>
> 01-09 14:06:02.655: ERROR/AndroidRuntime(298): at
> android.view.ViewGroup.drawChild(ViewGroup.java:1529)
>
> 01-09 14:06:02.655: ERROR/AndroidRuntime(298): at
> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
>
> 01-09 14:06:02.655: ERROR/AndroidRuntime(298): at
> android.view.ViewGroup.drawChild(ViewGroup.java:1529)
>
> 01-09 14:06:02.655: ERROR/AndroidRuntime(298): at
> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
>
> 01-09 14:06:02.655: ERROR/AndroidRuntime(298): at
> android.view.View.draw(View.java:6538)
>
> 01-09 14:06:02.655: ERROR/AndroidRuntime(298): at
> android.widget.FrameLayout.draw(FrameLayout.java:352)
>
> 01-09 14:06:02.655: ERROR/AndroidRuntime(298): at
> android.view.ViewGroup.drawChild(ViewGroup.java:1531)
>
> 01-09 14:06:02.655: ERROR/AndroidRuntime(298): at
> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
>
> 01-09 14:06:02.655: ERROR/AndroidRuntime(298): at
> android.view.View.draw(View.java:6538)
>
> 01-09 14:06:02.655: ERROR/AndroidRuntime(298): at
> android.widget.FrameLayout.draw(FrameLayout.java:352)
>
> 01-09 14:06:02.655: ERROR/AndroidRuntime(298): at
> com.android.internal.policy.impl.PhoneWindow
> $DecorView.draw(PhoneWindow.java:1830)
>
> 01-09 14:06:02.655: ERROR/AndroidRuntime(298): at
> android.view.ViewRoot.draw(ViewRoot.java:1349)
>
> 01-09 14:06:02.655: ERROR/AndroidRuntime(298): at
> android.view.ViewRoot.performTraversals(ViewRoot.java:1114)
>
> 01-09 14:06:02.655: ERROR/AndroidRuntime(298): at
> android.view.ViewRoot.handleMessage(ViewRoot.java:1633)
>
> 01-09 14:06:02.655: ERROR/AndroidRuntime(298): at
> android.os.Handler.dispatchMessage(Handler.java:99)
>
> 01-09 14:06:02.655: ERROR/AndroidRuntime(298): at
> android.os.Looper.loop(Looper.java:123)
>
> 01-09 14:06:02.655: ERROR/AndroidRuntime(298): at
> android.app.ActivityThread.main(ActivityThread.java:4363)
>
> 01-09 14:06:02.655: ERROR/AndroidRuntime(298): at
> java.lang.reflect.Method.invokeNative(Native Method)
>
> 01-09 14:06:02.655: ERROR/AndroidRuntime(298): at
> java.lang.reflect.Method.invoke(Method.java:521)
>
> 01-09 14:06:02.655: ERROR/AndroidRuntime(298): at
> com.android.internal.os.ZygoteInit
> $MethodAndArgsCaller.run(ZygoteInit.java:860)
>
> 01-09 14:06:02.655: ERROR/AndroidRuntime(298): at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
>
> 01-09 14:06:02.655: ERROR/AndroidRuntime(298): at
> dalvik.system.NativeStart.main(Native Method)
>
> 01-09 14:06:02.825: ERROR/dalvikvm(298): Unable to open stack trace
> file '/data/anr/traces.txt': Permission denied
>
> 01-09 14:06:07.704: ERROR/gralloc(52): [unregister] handle 0x5506a8
> still locked (state=40000001)

I tried to debug the error but I can't get the cause ? Can you give any good advice of this?
Thanks.