
| Key: |
SES-693
|
| Type: |
Bug
|
| Status: |
Closed
|
| Resolution: |
Won't Fix
|
| Priority: |
Major
|
| Assignee: |
Unassigned
|
| Reporter: |
Nick Giles
|
| Votes: |
0
|
| Watchers: |
0
|
|
If you were logged in you would be able to see more operations.
|
|
Sesame
Created: 11/Dec/09 04:42 PM
Updated: 15/Dec/09 07:32 PM
|
|
| Component/s: |
Rio
|
| Affects Version/s: |
2.3.0
|
| Fix Version/s: |
None
|
|
The following code will throw a null pointer exception:
RDFParser parser = Rio.createParser(RDFFormat.TRIX);
parser.parse(new ByteArrayInputStream(("<trix>" + "<graph><triple>"
+ "<uri>http://example.org/Bob</uri>" + "<uri>http://example.org/wife</uri>"
+ "<uri>http://example.org/Mary</uri>" + "</triple></graph>" + "</trix>")
.getBytes()), "");
Don't know whether this is somehow related to the fix for SES-691, but just in case it is, the following test case should also work:
public void testTrixParserErrorHandling() throws Exception {
RDFParser parser = Rio.createParser(RDFFormat.TRIX);
try {
parser.parse(new ByteArrayInputStream("rubbish".getBytes()), "");
fail("Parse should not succeed.");
} catch(RDFParseException e) {
//Expected
}
}
|
|
Never mind, I was missing a line in the tests to set an RDFHandler. Apologies.
|
|