Eduard de Jong created NETBEANS-3206:
----------------------------------------

             Summary: In a NB module suite project parsing an illformed 
project.xml file raises a NPE
                 Key: NETBEANS-3206
                 URL: https://issues.apache.org/jira/browse/NETBEANS-3206
             Project: NetBeans
          Issue Type: Bug
            Reporter: Eduard de Jong


In a NB module suite project parsing an illformed project.xml file raises a NPE 
instead of giving a more useful log message. The NPE is thrown when the xml 
file doesn't have a 'code-name-base' element in the file 
"apisupport.ant/src/org/netbeans/modules/apisupport/project/universe/ModuleList.java"
 Other parsing errors in that file give rise to a log warning reporting a "mal 
formed" file. 

The NPE arrises from an inconsistency in the XML parsing API in 
org.openide.xml.XMLUtil in the handling of a missing element and missing text 
in an element.

A code patch for this bug will be offered in a PR following this report.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to