RC-Paves3-build / plovr

Automatically exported from code.google.com/p/plovr
0 stars 0 forks source link

NullPointerException when id is not set in config file #77

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a minimal config file, e.g. foo.json, containing a JSON object with 
just inputs specified, e.g. {inputs:["foo.js"]}
2. Run plovr with his configutation
3. Observe NullPointerException

$ echo '{inputs:"foo.js"}' > foo.json
$ java -jar build/plovr-eba786b34df9.jar serve foo.json
Exception in thread "main" java.lang.NullPointerException
    at java.util.concurrent.ConcurrentHashMap.containsKey(ConcurrentHashMap.java:782)
    at org.plovr.CompilationServer.registerConfig(CompilationServer.java:52)
    at org.plovr.cli.ServeCommand.runCommandWithOptions(ServeCommand.java:33)
    at org.plovr.cli.ServeCommand.runCommandWithOptions(ServeCommand.java:11)
    at org.plovr.cli.AbstractCommandRunner.runCommand(AbstractCommandRunner.java:41)
    at org.plovr.cli.Command.execute(Command.java:47)
    at org.plovr.cli.Main.mainWithExitCode(Main.java:56)
    at org.plovr.cli.Main.main(Main.java:30)

What is the expected output? What do you see instead?
Plovr should print a suitable error message. Instead, it dies with an exception.

What version of the product are you using? On what operating system?
eba786b34df9 on Mac OS X 10.6.8

Please provide any additional information below.

Original issue reported on code.google.com by twpa...@gmail.com on 31 Oct 2012 at 5:21

GoogleCodeExporter commented 8 years ago

Original comment by bolinf...@gmail.com on 4 Nov 2012 at 11:32