[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-1726) NullPointerException in XMLScanner

Max Andersen (JIRA) jira-events at lists.jboss.org
Mon Feb 4 11:03:06 EST 2008


    [ http://jira.jboss.com/jira/browse/JBIDE-1726?page=comments#action_12398066 ] 
            
Max Andersen commented on JBIDE-1726:
-------------------------------------

The fix:
if(name == null) {
+				SeamCorePlugin.getPluginLog().logWarning("Entity " + entity.getName() + " has no 'name' attribute");
+				continue;
+			}

why should we fill the error log with this common situation ?

> NullPointerException in XMLScanner
> ----------------------------------
>
>                 Key: JBIDE-1726
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-1726
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Seam
>    Affects Versions: 2.0.0.GA
>            Reporter: Viacheslav Kabanovich
>         Assigned To: Viacheslav Kabanovich
>             Fix For: 2.0.1
>
>
> If components xml contains tag <framework:ejbql> or <framework:order>, build throws exception
> java.lang.NullPointerException
>    at java.util.StringTokenizer.<init>
>    at java.util.StringTokenizer.<init>
>    at org.jboss.tools.seam.internal.core.scanner.xml.XMLScanner.toCamelCase(XMLScanner.java:318)
>    at org.jboss.tools.seam.internal.core.scanner.xml.XMLScanner.parseComponent(XMLScanner.java:204)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list