Changeset 7081 in josm for trunk/src/org/openstreetmap/josm/gui/JosmUserIdentityManager.java
- Timestamp:
- 2014-05-09T04:49:54+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/JosmUserIdentityManager.java
r7048 r7081 242 242 switch (evt.getKey()) { 243 243 case "osm-server.username": 244 if (!(evt.getNewValue() instanceof StringSetting)) return; 245 String newUserName = ((StringSetting) evt.getNewValue()).getValue(); 244 String newUserName = null; 245 if (evt.getNewValue() instanceof StringSetting) { 246 newUserName = ((StringSetting) evt.getNewValue()).getValue(); 247 } 246 248 if (newUserName == null || newUserName.trim().isEmpty()) { 247 249 setAnonymous(); 248 250 } else { 249 if (! 251 if (!newUserName.equals(userName)) { 250 252 setPartiallyIdentified(newUserName); 251 253 } … … 254 256 255 257 case "osm-server.url": 256 if (!(evt.getNewValue() instanceof StringSetting)) return; 257 String newUrl = ((StringSetting) evt.getNewValue()).getValue(); 258 String newUrl = null; 259 if (evt.getNewValue() instanceof StringSetting) { 260 newUrl = ((StringSetting) evt.getNewValue()).getValue(); 261 } 258 262 if (newUrl == null || newUrl.trim().isEmpty()) { 259 263 setAnonymous();
Note:
See TracChangeset
for help on using the changeset viewer.