Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4699] Android: xmlNodeListRange fails with NPE

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-07-27T10:04:04.000+0000
Affected Version/sRelease 1.7.2
Fix Version/sSprint 2011-30, Release 1.8.0
ComponentsAndroid
Labelsn/a
ReporterDon Thorp
AssigneeBill Dawson
Created2011-07-18T09:42:16.000+0000
Updated2011-08-26T15:24:48.000+0000

Description

E/KrollMethod( 1360): (kroll$1: app://app.js) [2,1487] Exception calling kroll method item, invocation: null ]
E/KrollMethod( 1360): java.lang.NullPointerException
E/KrollMethod( 1360): 	at ti.modules.titanium.xml.NodeProxy.getNodeProxy(NodeProxy.java:59)
E/KrollMethod( 1360): 	at ti.modules.titanium.xml.NodeListProxy.item(NodeListProxy.java:43)
E/KrollMethod( 1360): 	at ti.modules.titanium.xml.NodeListProxyBindingGen$2.invoke(NodeListProxyBindingGen.java:126)
E/KrollMethod( 1360): 	at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:51)
E/KrollMethod( 1360): 	at org.appcelerator.titanium.kroll.KrollCoverage$KrollFunctionCoverage.call(KrollCoverage.java:213)
E/KrollMethod( 1360): 	at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1701)
E/KrollMethod( 1360): 	at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)
E/KrollMethod( 1360): 	at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
E/KrollMethod( 1360): 	at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
E/KrollMethod( 1360): 	at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177)
E/KrollMethod( 1360): 	at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
E/KrollMethod( 1360): 	at org.appcelerator.titanium.testharness.Test_harnessActivity$1.run(Test_harnessActivity.java:90)
E/KrollMethod( 1360): 	at org.appcelerator.titanium.TiMessageQueue.handleMessage(TiMessageQueue.java:219)
E/KrollMethod( 1360): 	at android.os.Handler.dispatchMessage(Handler.java:95)
E/KrollMethod( 1360): 	at android.os.Looper.loop(Looper.java:130)
E/KrollMethod( 1360): 	at org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:86)
W/TiConvert( 1360): (kroll$1: app://app.js) [9,1596] Unsupported type class org.appcelerator.kroll.KrollProxy$1
D/dalvikvm( 1360): GC_CONCURRENT freed 1429K, 50% free 3958K/7815K, external 3125K/3903K, paused 3ms+3ms

Comments

  1. Bill Dawson 2011-07-26

    Pull request ready: https://github.com/appcelerator/titanium_mobile/pull/283
  2. Natalie Huynh 2011-08-26

    Tested Drillbit XML with: version=1.8.0 timestamp=08/26/11 14:21 githash=0e2031e Android Emulator 2.1 and 3.2

JSON Source