im trying to mask password when i type my user input password it must be hidden or *. im using this readPassowrd method which has issues like null pointer error for performing the task in IDE but fine for Command line. Is there anyways i can mask password in IDE only.
this is what i have below
char[] PASSWORD =console.readPassword("ENTER YOUR PASSWORD :");
log.info("Entered" + PASSWORD);
but i get Exception in thread "main" java.lang.NullPointerException in console in the IDE.
Any help with this ?