I have narrowed this problem down to one line of code in the
XSQNameBinding.java file.  For some reason if the variable 'value' does not
start with "foo" then the code crashes when the QName is initialized. Can
someone please assist me with this.  I have pasted the function with the
crashing line of code in bold below.  If I am missing something simple and
being an idiot please point it out to me.

public Object parse(InstanceComponent instance, Object value)
        throws Exception {
    QName qName = DatatypeConverter.parseQName((String) value,
namespaceContext);

        if (qName != null) {
            return qName;
        }

        if (value == null) {
            return new QName(null);
        }

        String s = (String) value;
        int i = s.indexOf(':');

        if (i != -1) {
            String prefix = s.substring(0, i);
            String local = s.substring(i + 1);

            return new QName(null, local, prefix);
        }

        return new QName(null, s);
    }


-- 
View this message in context: 
http://www.nabble.com/XSQNameBindingTest-Failure-tp17809860p17873583.html
Sent from the geotools-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to