1
System.out.println("please enter id ");
Console console = System.console();
char[] password = console.readPassword("Enter password");  
Arrays.fill(password, ' ');

I am getting java.lang.NullPointerException , I don't know how to get rid of this exception.

shauryachats
  • 9,975
  • 4
  • 35
  • 48

1 Answers1

0

Sorry to be bearer of the bad news but that's an Eclipse bug which still hasn't been resolved yet. You can read all about it here Also the answer by Vijay Shankar in this post seems to be a workaround for this.

Community
  • 1
  • 1
Sanved
  • 921
  • 13
  • 19