diff --git a/engine/src/desktop/com/jme3/app/SettingsDialog.java b/engine/src/desktop/com/jme3/app/SettingsDialog.java index d1e34722e..3ad02a69d 100644 --- a/engine/src/desktop/com/jme3/app/SettingsDialog.java +++ b/engine/src/desktop/com/jme3/app/SettingsDialog.java @@ -258,9 +258,8 @@ public final class SettingsDialog extends JDialog { try { URL file = new URL("file:" + image); setImage(file); - // We can safely ignore the exception - it just means that the user - // gave us a bogus file } catch (MalformedURLException e) { + logger.log(Level.WARNING, "Couldn’t read from file '" + image + "'", e); } } @@ -503,7 +502,7 @@ public final class SettingsDialog extends JDialog { Method setIconImages = getClass().getMethod("setIconImages", List.class); setIconImages.invoke(this, icons); } catch (Exception e) { - return; + logger.log(Level.WARNING, "Error setting icon images", e); } } @@ -697,6 +696,7 @@ public final class SettingsDialog extends JDialog { try { url = new URL("file:" + file); } catch (MalformedURLException e) { + logger.log(Level.WARNING, "Invalid file name '" + file + "'", e); } return url; }