* compatability. It was be logged and has now become an exception.
*/
try
{
final Literal lit = model.createLiteral(null, "");
model.query(new SimpleSelector(null, null, lit));
Assert.fail("SHould have thrown a null pointer exception");
}
catch (final NullPointerException expected)
{ // expected}
}
try
{
final Literal lit = model.createLiteral(null, "en");
model.query(new SimpleSelector(null, null, lit));
Assert.fail("SHould have thrown a null pointer exception");
}
catch (final NullPointerException expected)
{ // expected}
}
StmtIterator iter = model.listStatements(new SimpleSelector(null, null,
(String) null));
while (iter.hasNext())
{
iter.nextStatement().getObject();
}
iter = model.listStatements(new SimpleSelector(null, null,
(Object) null));
while (iter.hasNext())
{
iter.nextStatement().getObject();
}