Discussion:
riot --nocheck raises a NullPointerException
Jindřich Mynarz
2016-06-29 09:25:31 UTC
Permalink
Hi,

executing "riot --nocheck file.ttl" raises a NullPointerException:

java.lang.NullPointerException
at java.util.Objects.requireNonNull(Objects.java:203)
at
org.apache.jena.riot.system.ParserProfileBase.<init>(ParserProfileBase.java:52)
at org.apache.jena.riot.system.RiotLib.profile(RiotLib.java:181)
at riotcmd.CmdLangParse.parseRIOT(CmdLangParse.java:277)
at riotcmd.CmdLangParse.parseFile(CmdLangParse.java:202)
at riotcmd.CmdLangParse.parseFile(CmdLangParse.java:192)
at riotcmd.CmdLangParse.exec$(CmdLangParse.java:164)
at riotcmd.CmdLangParse.exec(CmdLangParse.java:132)
at jena.cmd.CmdMain.mainMethod(CmdMain.java:93)
at jena.cmd.CmdMain.mainRun(CmdMain.java:58)
at jena.cmd.CmdMain.mainRun(CmdMain.java:45)
at riotcmd.riot.main(riot.java:34)

Am I missing something in the command? I tried it on various files, so it
seems to be a generic problem.

riot --version:

Jena: VERSION: 3.1.0
Jena: BUILD_DATE: 2016-05-10T11:59:39+0000
RIOT: VERSION: 3.1.0
RIOT: BUILD_DATE: 2016-05-10T11:59:39+0000

- Jindřich
--
Jindřich Mynarz
http://mynarz.net/#jindrich
Andy Seaborne
2016-06-29 10:01:35 UTC
Permalink
Thanks for the report.

This is already fixed in the development master branch (commit b43dfcf)
and should be in a dev build.

Andy
Post by Jindřich Mynarz
Hi,
java.lang.NullPointerException
at java.util.Objects.requireNonNull(Objects.java:203)
at
org.apache.jena.riot.system.ParserProfileBase.<init>(ParserProfileBase.java:52)
at org.apache.jena.riot.system.RiotLib.profile(RiotLib.java:181)
at riotcmd.CmdLangParse.parseRIOT(CmdLangParse.java:277)
at riotcmd.CmdLangParse.parseFile(CmdLangParse.java:202)
at riotcmd.CmdLangParse.parseFile(CmdLangParse.java:192)
at riotcmd.CmdLangParse.exec$(CmdLangParse.java:164)
at riotcmd.CmdLangParse.exec(CmdLangParse.java:132)
at jena.cmd.CmdMain.mainMethod(CmdMain.java:93)
at jena.cmd.CmdMain.mainRun(CmdMain.java:58)
at jena.cmd.CmdMain.mainRun(CmdMain.java:45)
at riotcmd.riot.main(riot.java:34)
Am I missing something in the command? I tried it on various files, so it
seems to be a generic problem.
Jena: VERSION: 3.1.0
Jena: BUILD_DATE: 2016-05-10T11:59:39+0000
RIOT: VERSION: 3.1.0
RIOT: BUILD_DATE: 2016-05-10T11:59:39+0000
- Jindřich
Loading...