[Schmitzm-commits] r1299 - trunk/src/schmitzm/swing
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Nov 22 17:08:13 CET 2010
Author: alfonx
Date: 2010-11-22 17:08:13 +0100 (Mon, 22 Nov 2010)
New Revision: 1299
Modified:
trunk/src/schmitzm/swing/SwingUtil.java
Log:
Modified: trunk/src/schmitzm/swing/SwingUtil.java
===================================================================
--- trunk/src/schmitzm/swing/SwingUtil.java 2010-11-22 15:24:31 UTC (rev 1298)
+++ trunk/src/schmitzm/swing/SwingUtil.java 2010-11-22 16:08:13 UTC (rev 1299)
@@ -1492,7 +1492,15 @@
Appender app = (Appender) allAppenders.nextElement();
if (app instanceof FileAppender) {
FileAppender fa = (FileAppender) app;
- final File logFile = new File(fa.getFile());
+ String fileLocation = fa.getFile();
+
+ if (fileLocation == null) {
+ // Strange Strage.. On Andi's win7 gabs bei new
+ // File(fileLocation) eine NPE!?!?!
+ fileLocation = "default.log";
+ }
+
+ final File logFile = new File(fileLocation);
JMenuItem jMenuItem = new JMenuItem(
new AbstractAction(R("Menu.Logging.OpenFile",
logFile.getAbsolutePath())) {
More information about the Schmitzm-commits
mailing list