Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-17574

SimpleXMLEncoder.encodeValue() should check parentNode=null case

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Adobe Flex SDK 3.3 (Release)
    • None
    • RPC: General
    • 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):

      Attachments

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: