Michael Dürig created OAK-4045:
----------------------------------
Summary: NPE when running oak-run from within the IDE
Key: OAK-4045
URL: https://issues.apache.org/jira/browse/OAK-4045
Project: Jackrabbit Oak
Issue Type: Bug
Components: run
Reporter: Michael Dürig
Assignee: Michael Dürig
Fix For: 1.3.17
Running oak-run from within the IDE causes a {{NPE}}:
{code}
Exception in thread "main" java.lang.NullPointerException
at java.util.Properties$LineReader.readLine(Properties.java:434)
at java.util.Properties.load0(Properties.java:353)
at java.util.Properties.load(Properties.java:341)
at org.apache.jackrabbit.oak.run.Main.getProductVersion(Main.java:76)
at org.apache.jackrabbit.oak.run.Main.getProductVersion(Main.java:66)
at org.apache.jackrabbit.oak.run.Main.getProductInfo(Main.java:53)
at org.apache.jackrabbit.oak.run.Main.printProductInfo(Main.java:86)
{code}
This is caused by not checking the return value of {{getResourceAsStream}} for
{{null}} when trying to load
{{/META-INF/maven/org.apache.jackrabbit/oak-run/pom.properties}}. That file is
not on the class path when running from within the IDE.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)