Description
Running oak-run from within the IDE causes a NPE:
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)
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.