Changeset 2650 in josm for trunk/src/org


Ignore:
Timestamp:
2009-12-17T20:29:48+01:00 (15 years ago)
Author:
Gubaer
Message:

fixed #4194: Prefeences

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/ServerAccessPreference.java

    r2641 r2650  
    4646        try {
    4747            PasswordAuthentication credentials =  cm.lookup(RequestorType.SERVER);
    48             oldUsername = (credentials == null | credentials.getUserName() == null) ? "" : credentials.getUserName();
    49             oldPassword = (credentials == null | credentials.getPassword() == null) ? "" : String.valueOf(credentials.getPassword());
     48            oldUsername = (credentials == null || credentials.getUserName() == null) ? "" : credentials.getUserName();
     49            oldPassword = (credentials == null || credentials.getPassword() == null) ? "" : String.valueOf(credentials.getPassword());
    5050        } catch(CredentialsManagerException e) {
    5151            e.printStackTrace();
Note: See TracChangeset for help on using the changeset viewer.