diff --git a/android/modules/xml/src/java/ti/modules/titanium/xml/NamedNodeMapProxy.java b/android/modules/xml/src/java/ti/modules/titanium/xml/NamedNodeMapProxy.java index 7899fd6c0c4..2170ba3b4a8 100644 --- a/android/modules/xml/src/java/ti/modules/titanium/xml/NamedNodeMapProxy.java +++ b/android/modules/xml/src/java/ti/modules/titanium/xml/NamedNodeMapProxy.java @@ -25,6 +25,9 @@ public NamedNodeMapProxy(NamedNodeMap map) @Kroll.getProperty public int getLength() { + if (map == null) { + return 0; + } return map.getLength(); }