Changeset 34443 in osm for applications/editors/josm
- Timestamp:
- 2018-08-09T23:48:03+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/ImportImagePlugin.java
r34219 r34443 124 124 try (FileWriter fw = new FileWriter(new File(PLUGINPROPERTIES_PATH))) { 125 125 URL propertiesURL = getClass().getResource("resources/" + PLUGINPROPERTIES_FILENAME); 126 pluginProps = new Properties(); 127 pluginProps.load(propertiesURL.openStream()); 128 pluginProps.store(fw, null); 126 if (propertiesURL != null) { 127 pluginProps = new Properties(); 128 pluginProps.load(propertiesURL.openStream()); 129 pluginProps.store(fw, null); 130 } 129 131 } 130 132 logger.debug("Plugin properties loaded"); … … 134 136 try (FileWriter fw = new FileWriter(new File(LOGGING_PROPERTIES_FILEPATH))) { 135 137 URL propertiesURL = getClass().getResource("resources/log4j.properties"); 136 Properties loggingProps = new Properties(); 137 loggingProps.load(propertiesURL.openStream()); 138 loggingProps.store(fw, null); 138 if (propertiesURL != null) { 139 Properties loggingProps = new Properties(); 140 loggingProps.load(propertiesURL.openStream()); 141 loggingProps.store(fw, null); 142 } 139 143 } 140 144 logger.debug("Logging properties created");
Note:
See TracChangeset
for help on using the changeset viewer.