changeset 4697:52068f1231da

Fixed NPE in empty style editor window.
author Raimund Renkert <rrenkert@intevation.de>
date Mon, 17 Dec 2012 17:54:26 +0100
parents 03c66281c16b
children dfac28805d79
files flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java	Mon Dec 17 16:17:53 2012 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java	Mon Dec 17 17:54:26 2012 +0100
@@ -214,6 +214,9 @@
             public void onClick(ClickEvent e) {
                 // TODO Fix this, for whatever reason it doesnt work
                 // (always valid).
+                if (df == null) {
+                    return;
+                }
                 if (!df.hasErrors() && df.validate()) {
                     saveStyle();
                 }

http://dive4elements.wald.intevation.org