Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6066] Android: mapView: v8 only: Crash when opening map view

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2011-11-08T14:00:29.000+0000
Affected Version/sRelease 1.8.0
Fix Version/sn/a
ComponentsAndroid
Labelsbranch-v8
ReporterEric Merriman
AssigneeMarshall Culpepper
Created2011-11-08T10:28:47.000+0000
Updated2014-06-19T12:43:15.000+0000

Description

Description: App crash when opening mapview in kitchensink W/dalvikvm( 9047): threadid=1: thread exiting with uncaught exception (group=0x40015560) E/TiApplication( 9047): (main) [162,2089087] Sending event: exception on thread: main msg:java.lang.NullPointerException: uriString; Titanium 1.8.0,2011/11/07 10:20,8911fc4 E/TiApplication( 9047): java.lang.NullPointerException: uriString E/TiApplication( 9047): at android.net.Uri$StringUri.(Uri.java:420) E/TiApplication( 9047): at android.net.Uri$StringUri.(Uri.java:410) E/TiApplication( 9047): at android.net.Uri.parse(Uri.java:382) E/TiApplication( 9047): at org.appcelerator.titanium.io.TiFileFactory.isLocalScheme(TiFileFactory.java:119) E/TiApplication( 9047): at org.appcelerator.titanium.util.TiUrl.resolve(TiUrl.java:196) E/TiApplication( 9047): at org.appcelerator.kroll.KrollProxy.resolveUrl(KrollProxy.java:598) E/TiApplication( 9047): at ti.modules.titanium.map.TiMapView$TitaniumOverlay.createItem(TiMapView.java:227) E/TiApplication( 9047): at ti.modules.titanium.map.TiMapView$TitaniumOverlay.createItem(TiMapView.java:155) E/TiApplication( 9047): at com.google.android.maps.ItemizedOverlay.populate(ItemizedOverlay.java:309) E/TiApplication( 9047): at ti.modules.titanium.map.TiMapView$TitaniumOverlay.setAnnotations(TiMapView.java:167) E/TiApplication( 9047): at ti.modules.titanium.map.TiMapView.doSetAnnotations(TiMapView.java:613) E/TiApplication( 9047): at ti.modules.titanium.map.TiMapView.processProperties(TiMapView.java:525) E/TiApplication( 9047): at org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:589) E/TiApplication( 9047): at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:449) E/TiApplication( 9047): at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:441) E/TiApplication( 9047): at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:427) E/TiApplication( 9047): at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:520) E/TiApplication( 9047): at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:264) E/TiApplication( 9047): at org.appcelerator.titanium.proxy.TiWindowProxy.handleMessage(TiWindowProxy.java:109) E/TiApplication( 9047): at ti.modules.titanium.ui.ActivityWindowProxy.handleMessage(ActivityWindowProxy.java:97) E/TiApplication( 9047): at android.os.Handler.dispatchMessage(Handler.java:95) E/TiApplication( 9047): at android.os.Looper.loop(Looper.java:130) E/TiApplication( 9047): at android.app.ActivityThread.main(ActivityThread.java:3683) E/TiApplication( 9047): at java.lang.reflect.Method.invokeNative(Native Method) E/TiApplication( 9047): at java.lang.reflect.Method.invoke(Method.java:507) E/TiApplication( 9047): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) E/TiApplication( 9047): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) E/TiApplication( 9047): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime( 9047): FATAL EXCEPTION: main E/AndroidRuntime( 9047): java.lang.NullPointerException: uriString E/AndroidRuntime( 9047): at android.net.Uri$StringUri.(Uri.java:420) E/AndroidRuntime( 9047): at android.net.Uri$StringUri.(Uri.java:410) E/AndroidRuntime( 9047): at android.net.Uri.parse(Uri.java:382) E/AndroidRuntime( 9047): at org.appcelerator.titanium.io.TiFileFactory.isLocalScheme(TiFileFactory.java:119) E/AndroidRuntime( 9047): at org.appcelerator.titanium.util.TiUrl.resolve(TiUrl.java:196) E/AndroidRuntime( 9047): at org.appcelerator.kroll.KrollProxy.resolveUrl(KrollProxy.java:598) E/AndroidRuntime( 9047): at ti.modules.titanium.map.TiMapView$TitaniumOverlay.createItem(TiMapView.java:227) E/AndroidRuntime( 9047): at ti.modules.titanium.map.TiMapView$TitaniumOverlay.createItem(TiMapView.java:155) E/AndroidRuntime( 9047): at com.google.android.maps.ItemizedOverlay.populate(ItemizedOverlay.java:309) E/AndroidRuntime( 9047): at ti.modules.titanium.map.TiMapView$TitaniumOverlay.setAnnotations(TiMapView.java:167) E/AndroidRuntime( 9047): at ti.modules.titanium.map.TiMapView.doSetAnnotations(TiMapView.java:613) E/AndroidRuntime( 9047): at ti.modules.titanium.map.TiMapView.processProperties(TiMapView.java:525) E/AndroidRuntime( 9047): at org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:589) E/AndroidRuntime( 9047): at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:449) E/AndroidRuntime( 9047): at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:441) E/AndroidRuntime( 9047): at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:427) E/AndroidRuntime( 9047): at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:520) E/AndroidRuntime( 9047): at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:264) E/AndroidRuntime( 9047): at org.appcelerator.titanium.proxy.TiWindowProxy.handleMessage(TiWindowProxy.java:109) E/AndroidRuntime( 9047): at ti.modules.titanium.ui.ActivityWindowProxy.handleMessage(ActivityWindowProxy.java:97) E/AndroidRuntime( 9047): at android.os.Handler.dispatchMessage(Handler.java:95) E/AndroidRuntime( 9047): at android.os.Looper.loop(Looper.java:130) E/AndroidRuntime( 9047): at android.app.ActivityThread.main(ActivityThread.java:3683) E/AndroidRuntime( 9047): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 9047): at java.lang.reflect.Method.invoke(Method.java:507) E/AndroidRuntime( 9047): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) E/AndroidRuntime( 9047): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) E/AndroidRuntime( 9047): at dalvik.system.NativeStart.main(Native Method) W/ActivityManager( 110): Force finishing activity com.appcelerator.titanium/org.appcelerator.titanium.TiActivity Steps to reproduce: 1) Install KS on device 2) Navigate to Base UI > Views > Map Views 3) Open test Result: App crash Expected: Map view loads

Comments

  1. Eric Merriman 2011-11-08

    Verified fixed with SDK 1.8.0.1.v20111108105548 on Nexus S (v8) Galaxy Tab 10.1 (v8), Droid 3 (rhino) LG slate (rhino).

JSON Source