Open GoogleCodeExporter opened 8 years ago
can you please tell me what is the problem in that code
i have these errors in the logCat, the "description" is displaing "null null"
and the application is closed.
here are the error LogCat :
07-31 16:10:43.592: W/System.err(1406):
org.apache.harmony.xml.ExpatParser$ParseException: At line 1, column 1083: not
well-formed (invalid token)
07-31 16:10:43.602: W/System.err(1406): at
org.apache.harmony.xml.ExpatParser.parseFragment(ExpatParser.java:515)
07-31 16:10:43.602: W/System.err(1406): at
org.apache.harmony.xml.ExpatParser.parseDocument(ExpatParser.java:474)
07-31 16:10:43.612: W/System.err(1406): at
org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:321)
07-31 16:10:43.612: W/System.err(1406): at
org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:279)
07-31 16:10:43.622: W/System.err(1406): at
javax.xml.parsers.SAXParser.parse(SAXParser.java:390)
07-31 16:10:43.622: W/System.err(1406): at
javax.xml.parsers.SAXParser.parse(SAXParser.java:187)
07-31 16:10:43.632: W/System.err(1406): at
org.ci.geo.route.RoadProvider.getRoute(RoadProvider.java:22)
07-31 16:10:43.632: W/System.err(1406): at
com.test.MainActivity$2.run(MainActivity.java:50)
07-31 16:10:43.872: E/AndroidRuntime(1406): FATAL EXCEPTION: main
07-31 16:10:43.872: E/AndroidRuntime(1406): java.lang.NullPointerException
07-31 16:10:43.872: E/AndroidRuntime(1406): at
com.test.MapOverlay.drawPath(MainActivity.java:126)
07-31 16:10:43.872: E/AndroidRuntime(1406): at
com.test.MapOverlay.draw(MainActivity.java:116)
07-31 16:10:43.872: E/AndroidRuntime(1406): at
com.google.android.maps.OverlayBundle.draw(OverlayBundle.java:42)
07-31 16:10:43.872: E/AndroidRuntime(1406): at
com.google.android.maps.MapView.onDraw(MapView.java:530)
07-31 16:10:43.872: E/AndroidRuntime(1406): at
android.view.View.draw(View.java:10978)
07-31 16:10:43.872: E/AndroidRuntime(1406): at
android.view.ViewGroup.drawChild(ViewGroup.java:2887)
07-31 16:10:43.872: E/AndroidRuntime(1406): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:2489)
07-31 16:10:43.872: E/AndroidRuntime(1406): at
android.view.ViewGroup.drawChild(ViewGroup.java:2885)
07-31 16:10:43.872: E/AndroidRuntime(1406): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:2489)
07-31 16:10:43.872: E/AndroidRuntime(1406): at
android.view.ViewGroup.drawChild(ViewGroup.java:2885)
07-31 16:10:43.872: E/AndroidRuntime(1406): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:2489)
07-31 16:10:43.872: E/AndroidRuntime(1406): at
android.view.ViewGroup.drawChild(ViewGroup.java:2885)
07-31 16:10:43.872: E/AndroidRuntime(1406): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:2489)
07-31 16:10:43.872: E/AndroidRuntime(1406): at
android.view.View.draw(View.java:10981)
07-31 16:10:43.872: E/AndroidRuntime(1406): at
android.widget.FrameLayout.draw(FrameLayout.java:450)
07-31 16:10:43.872: E/AndroidRuntime(1406): at
com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:212
6)
07-31 16:10:43.872: E/AndroidRuntime(1406): at
android.view.ViewRootImpl.draw(ViewRootImpl.java:2026)
07-31 16:10:43.872: E/AndroidRuntime(1406): at
android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1634)
07-31 16:10:43.872: E/AndroidRuntime(1406): at
android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2442)
07-31 16:10:43.872: E/AndroidRuntime(1406): at
android.os.Handler.dispatchMessage(Handler.java:99)
07-31 16:10:43.872: E/AndroidRuntime(1406): at
android.os.Looper.loop(Looper.java:137)
07-31 16:10:43.872: E/AndroidRuntime(1406): at
android.app.ActivityThread.main(ActivityThread.java:4424)
07-31 16:10:43.872: E/AndroidRuntime(1406): at
java.lang.reflect.Method.invokeNative(Native Method)
07-31 16:10:43.872: E/AndroidRuntime(1406): at
java.lang.reflect.Method.invoke(Method.java:511)
07-31 16:10:43.872: E/AndroidRuntime(1406): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
07-31 16:10:43.872: E/AndroidRuntime(1406): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
07-31 16:10:43.872: E/AndroidRuntime(1406): at
dalvik.system.NativeStart.main(Native Method)
PLEASE can you fix it up for me ?? ill be gratefull
Original comment by berrich....@gmail.com
on 31 Jul 2012 at 4:46
Original issue reported on code.google.com by
letellie...@gmail.com
on 19 Jul 2011 at 12:56Attachments: