This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 271394

Summary: System.console()
Product: java Reporter: Hunt3r
Component: UnsupportedAssignee: Martin Balin <mbalin>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: Dev   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: A piece of code which shows the System.console() is not working.

Description Hunt3r 2017-08-29 10:01:38 UTC
Created attachment 165043 [details]
A piece of code which shows the System.console() is not working.

System.console() is not supported. Whenever i try to read something it sends a null pointer Exception. It should either return not supported Exception or just simply run. If it is not showing any error while initialising the System.console() then why it it not getting executed.