Ian McLaughlin created JENA-326:
-----------------------------------

             Summary: NTripleReader needs a null-guard
                 Key: JENA-326
                 URL: https://issues.apache.org/jira/browse/JENA-326
             Project: Apache Jena
          Issue Type: Bug
          Components: Jena
    Affects Versions: Jena 2.7.3
            Reporter: Ian McLaughlin
            Priority: Minor


com.hp.hpl.jena.rdf.model.impl.NTripleReader.java line 140 has 


                try {
                    predicate = model.createProperty(readResource().getURI());
                } catch (Exception e1) {
                    errorHandler.fatalError(e1);
                }

In readResource() there is 
        if (badEOF())
            return null;

So when my test attempts to read truncated XML as NTriple, I get a null pointer 
exception. Other conditions in readResource() throw SyntaxErrors before 
returning, so that may be missing from this condtition.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to