pombreda / clamshell-cli

Automatically exported from code.google.com/p/clamshell-cli
Apache License 2.0
0 stars 0 forks source link

Handle EOF #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. java -jar cli.jar
2. type CTRL+D on the prompt
3. Exception appears on the screen

What is the expected output? What do you see instead?
Expected output - the cli should terminate.

Exception seen is:
Exception in thread "Thread-3" java.lang.NullPointerException
    at cli.clamshell.impl.CmdController.handle(CmdController.java:58)
    at cli.clamshell.impl.CliConsole$1.run(CliConsole.java:110)
    at java.lang.Thread.run(Thread.java:680)

What version of the product are you using? On what operating system?
Version 0.1
Mac OS 10.7

Please provide any additional information below.
None.

Original issue reported on code.google.com by rohan.ra...@gmail.com on 11 Sep 2011 at 12:57

GoogleCodeExporter commented 9 years ago
Able to replicate on Linux as well.  Investigating...

Original comment by vladimir...@gmail.com on 13 Sep 2011 at 6:11

GoogleCodeExporter commented 9 years ago
CTRL+D sent null input to the controller.  Fixed with null detection.

Original comment by vladimir...@gmail.com on 13 Sep 2011 at 6:23