Index: /applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/ImportImagePlugin.java
===================================================================
--- /applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/ImportImagePlugin.java	(revision 34442)
+++ /applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/ImportImagePlugin.java	(revision 34443)
@@ -124,7 +124,9 @@
                 try (FileWriter fw = new FileWriter(new File(PLUGINPROPERTIES_PATH))) {
                     URL propertiesURL = getClass().getResource("resources/" + PLUGINPROPERTIES_FILENAME);
-                    pluginProps = new Properties();
-                    pluginProps.load(propertiesURL.openStream());
-                    pluginProps.store(fw, null);
+                    if (propertiesURL != null) {
+                        pluginProps = new Properties();
+                        pluginProps.load(propertiesURL.openStream());
+                        pluginProps.store(fw, null);
+                    }
                 }
                 logger.debug("Plugin properties loaded");
@@ -134,7 +136,9 @@
                 try (FileWriter fw = new FileWriter(new File(LOGGING_PROPERTIES_FILEPATH))) {
                     URL propertiesURL = getClass().getResource("resources/log4j.properties");
-                    Properties loggingProps = new Properties();
-                    loggingProps.load(propertiesURL.openStream());
-                    loggingProps.store(fw, null);
+                    if (propertiesURL != null) {
+                        Properties loggingProps = new Properties();
+                        loggingProps.load(propertiesURL.openStream());
+                        loggingProps.store(fw, null);
+                    }
                 }
                 logger.debug("Logging properties created");
