org.geotools.feature.type.Descriptors: nodeName can only be NULL here

-----------------------------------------------------------------------

                 Key: GEOT-2698
                 URL: http://jira.codehaus.org/browse/GEOT-2698
             Project: GeoTools
          Issue Type: Bug
          Components: core feature, core main
    Affects Versions: 2.6-M2
            Reporter: Stefan Alfons Krüger
         Attachments: Descriptors_can_only_be_null_here.patch.txt

nodeName is used three times where it can only be null. Please check the patch 
carefully, as i am not sure i really understand what is done there.

     if (nodeName == null) {
                // this may be due to old api usage style, where
                // only types had names
                LOGGER.warning("node has no name set, try to fix! " + node);
                Name name2 = node.getType().getName();
                if (null == name.getNamespaceURI()) {
                    if (name.getLocalPart().equals(nodeName.getLocalPart())) {
                        return node;
                    }
                } else if 
(nodeName.getNamespaceURI().equals(name.getNamespaceURI())
                        && nodeName.getLocalPart().equals(name.getLocalPart())) 
{
                    return node;
                }
            } 

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

       

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to