Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6296] Android: ImageViews without an "image" but with a "defaultImage" throw a NullPointerException

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2011-11-23T14:19:07.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sSprint 2011-47, Release 1.8.0.1
ComponentsAndroid
Labelsbranch-v8
ReporterMarshall Culpepper
AssigneeMarshall Culpepper
Created2011-11-23T13:36:57.000+0000
Updated2011-12-06T11:15:12.000+0000

Description

This can be replicated by simply opening in KS: Base UI > Views > Image Views > Remote Image Exception:
11-23 11:31:26.270: E/AndroidRuntime(6348): Caused by: java.lang.NullPointerException
11-23 11:31:26.270: E/AndroidRuntime(6348):   at java.net.URI.parseURI(URI.java:294)
11-23 11:31:26.270: E/AndroidRuntime(6348):   at java.net.URI.<init>(URI.java:70)
11-23 11:31:26.270: E/AndroidRuntime(6348):   at ti.modules.titanium.ui.widget.TiUIImageView.processProperties(TiUIImageView.java:743)
11-23 11:31:26.270: E/AndroidRuntime(6348):   at org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:595)
11-23 11:31:26.270: E/AndroidRuntime(6348):   at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:449)
11-23 11:31:26.270: E/AndroidRuntime(6348):   at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:441)
11-23 11:31:26.270: E/AndroidRuntime(6348):   at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:427)
11-23 11:31:26.270: E/AndroidRuntime(6348):   at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:520)
11-23 11:31:26.270: E/AndroidRuntime(6348):   at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:264)
11-23 11:31:26.270: E/AndroidRuntime(6348):   at org.appcelerator.titanium.proxy.TiWindowProxy.handleMessage(TiWindowProxy.java:109)
11-23 11:31:26.270: E/AndroidRuntime(6348):   at ti.modules.titanium.ui.ActivityWindowProxy.handleMessage(ActivityWindowProxy.java:94)
11-23 11:31:26.270: E/AndroidRuntime(6348):   at android.os.Handler.dispatchMessage(Handler.java:95)
11-23 11:31:26.270: E/AndroidRuntime(6348):   at org.appcelerator.kroll.common.TiMessenger.dispatchMessage(TiMessenger.java:318)
11-23 11:31:26.270: E/AndroidRuntime(6348):   at org.appcelerator.kroll.common.TiMessenger.dispatchPendingMessages(TiMessenger.java:303)
11-23 11:31:26.270: E/AndroidRuntime(6348):   at org.appcelerator.kroll.common.TiMessenger$2.getResult(TiMessenger.java:188)
11-23 11:31:26.270: E/AndroidRuntime(6348):   at org.appcelerator.kroll.common.TiMessenger.sendBlockingMessage(TiMessenger.java:215)
11-23 11:31:26.270: E/AndroidRuntime(6348):   at org.appcelerator.kroll.common.TiMessenger.sendBlockingRuntimeMessage(TiMessenger.java:143)
11-23 11:31:26.270: E/AndroidRuntime(6348):   at org.appcelerator.kroll.KrollProxy.fireSyncEvent(KrollProxy.java:374)
11-23 11:31:26.270: E/AndroidRuntime(6348):   at org.appcelerator.titanium.TiBaseActivity.onStop(TiBaseActivity.java:694)
11-23 11:31:26.270: E/AndroidRuntime(6348):   at android.app.Instrumentation.callActivityOnStop(Instrumentation.java:1173)
11-23 11:31:26.270: E/AndroidRuntime(6348):   at android.app.Activity.performStop(Activity.java:4492)
11-23 11:31:26.270: E/AndroidRuntime(6348):   at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:2583)
11-23 11:31:26.270: E/AndroidRuntime(6348):   ... 11 more

Comments

  1. Marshall Culpepper 2011-11-23

    Pull request for this is ready: https://github.com/appcelerator/titanium_mobile/pull/763
  2. Dustin Hyde 2011-12-06

    Bug fixed. Verified on: SDK: 1.8.0.1.v20111205164258 Runtimes: Android V8/Rhino Studio: 1.0.7.201112052104 OS: OS X Lion Devices Tested: Nexus One 2.2.2, Droid3 2.3.4, G Slate 3.1, Emulator 4.0

JSON Source