Changeset 4264 in josm


Ignore:
Timestamp:
2011-07-25T12:24:22+02:00 (10 years ago)
Author:
bastiK
Message:

fixed #6638 - JOSM crashing when leaving preferences in r4263

File:
1 edited

Legend:

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

    r4263 r4264  
    8787    @Override
    8888    public void store(RequestorType requestorType, PasswordAuthentication credentials) throws CredentialsAgentException {
    89         if (requestorType == RequestorType.SERVER && credentials.getUserName() != null) {
     89        if (requestorType == RequestorType.SERVER && credentials.getUserName() != null && !credentials.getUserName().trim().isEmpty()) {
    9090            JosmUserIdentityManager.getInstance().setPartiallyIdentified(credentials.getUserName());
    9191        }
Note: See TracChangeset for help on using the changeset viewer.