Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20428] Even if the xml node attributes from Titanium.XML.Entity.getAttributes( ) is not null, calling length on it cause an exception

GitHub Issuen/a
TypeBug
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterKai Lu
AssigneeUnknown
Created2016-01-09T12:04:33.000+0000
Updated2018-02-28T19:55:55.000+0000

Description

Error: error calling getLength() on (null) NamedNodeMap Code: self.getElementId = function(oElem) { var attrs = oElem.getAttributes(); if(attrs != null){ for (var k = attrs.length - 1; k >= 0; k--) { var attr = attrs.item(k); log("attribute name: %s, attribute value: %s", attr.name, attr.value); if(attr.name === "id"){ return attr.value; } } } }; for (var k = attrs.length - 1; k >= 0; k--) { ==> this line cause the trouble

Comments

No comments

JSON Source