Changeset 3681 in josm


Ignore:
Timestamp:
Nov 29, 2010 1:08:25 PM (2 years ago)
Author:
bastiK
Message:

fixed #5624 - npe in authentication code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/auth/JosmPreferencesCredentialManager.java

    r3513 r3681  
    4040            if (user == null) 
    4141                return null; 
    42             return new PasswordAuthentication(user, password == null ? null : password.toCharArray()); 
     42            return new PasswordAuthentication(user, password == null ? new char[0] : password.toCharArray()); 
    4343        } 
    4444        return null; 
Note: See TracChangeset for help on using the changeset viewer.