After this input, jshell hangs:
jshell> System.console().readLine(null)
The result of such a call should be NPE as per Console class-level specification.
jshell> System.console().readLine(null)
The result of such a call should be NPE as per Console class-level specification.