Changeset 31527 in osm for applications/editors


Ignore:
Timestamp:
2015-08-24T22:36:59+02:00 (10 years ago)
Author:
niplecrumple
Message:

Fixed bug with NullPointer from donvip

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/rasterfilters/src/org/openstreetmap/josm/plugins/rasterfilters/preferences/FiltersDownloader.java

    r31509 r31527  
    287287
    288288                File file = new File(pluginDir, "urls.map");
     289                Main.debug("pluginDir and urls map" + file.getAbsoluteFile());
    289290
    290291                FileWriter fileWriter = null;
     
    339340                String localFile = null;
    340341                File plugin = new File(pluginDir);
     342                Main.debug("plugin dir" + plugin.getAbsolutePath());
    341343
    342344                if (m.find()) {
     
    345347
    346348                                localFile = fromUrl.substring(m.end());
    347 
     349                                Main.debug("localFile: " + localFile);
    348350                        }
    349351                }
     
    354356                        String plugDir = plugin.getAbsolutePath();
    355357                        File file = new File(plugDir, localFile);
     358                        Main.debug("Binary file: " + file.getAbsolutePath());
    356359
    357360                        if (file.exists()) {
    358361                                Main.debug("File " + localFile + " already exists");
    359362
    360                                 return localFile;
     363                                return file.getAbsolutePath();
    361364                        } else {
    362365
Note: See TracChangeset for help on using the changeset viewer.