Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
Adobe Flex SDK 3.3 (Release)
-
None
-
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
1. pass a null object to SimpleXMLEncoder.encodeValue() call, for example:
var result:XMLNode = encoder.encodeValue(myXMLDoc,new QName(new Namespace("xmlns", "http://www.namespace1.com"),"ns1"),null);
Actual Results:
receives run time error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
Expected Results:
add a conditional checking for parentNode=null case.
should we check qname=null as well?
Workaround (if any):