Ignore:
Timestamp:
2014-01-02T23:27:34+01:00 (6 years ago)
Author:
bastiK
Message:

fixed #9505 - Defaults for osm-server.url differ = !null

Loosen the conditions for default values. In general default values must be equal for the same key throughout the code. As an exception, you can always provide null as dummy default value (as it was before [6578]).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/oauth/OAuthParameters.java

    r6582 r6599  
    9191     */
    9292    static public OAuthParameters createFromPreferences(Preferences pref) {
    93         OAuthParameters parameters = createDefault(pref.get("osm-server.url", OsmApi.DEFAULT_API_URL));
     93        OAuthParameters parameters = createDefault(pref.get("osm-server.url"));
    9494        parameters.setConsumerKey(pref.get("oauth.settings.consumer-key", parameters.getConsumerKey()));
    9595        parameters.setConsumerSecret(pref.get("oauth.settings.consumer-secret", parameters.getConsumerSecret()));
Note: See TracChangeset for help on using the changeset viewer.