Ignore:
Timestamp:
2014-01-01T11:57:38+01:00 (11 years ago)
Author:
bastiK
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/oauth/OsmOAuthAuthorizationClient.java

    r6268 r6582  
    3535import org.openstreetmap.josm.gui.progress.NullProgressMonitor;
    3636import org.openstreetmap.josm.gui.progress.ProgressMonitor;
     37import org.openstreetmap.josm.io.OsmApi;
    3738import org.openstreetmap.josm.io.OsmTransferCanceledException;
    3839import org.openstreetmap.josm.tools.CheckParameterUtil;
     
    6162     */
    6263    public OsmOAuthAuthorizationClient() {
    63         oauthProviderParameters = OAuthParameters.createDefault(Main.pref.get("osm-server.url"));
     64        oauthProviderParameters = OAuthParameters.createDefault(Main.pref.get("osm-server.url", OsmApi.DEFAULT_API_URL));
    6465        consumer = oauthProviderParameters.buildConsumer();
    6566        provider = oauthProviderParameters.buildProvider(consumer);
Note: See TracChangeset for help on using the changeset viewer.