Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
char[] newPassword1 = c.readPassword("Enter password: "); char[] newPassword2 = c.readPassword("Enter password again: "); noMatch = !Arrays.equals(newPassword1, newPassword2); if (noMatch) { Arrays.fill(newPassword1, ' ');
newPassword1 might be null, leading to NullPointerException in Arrays.fill() call.
Similar issue for the following call on line 381:
Arrays.fill(newPassword2, ' ');