[Dive4elements-commits] [PATCH 1 of 2] Fixed NPE in empty style editor window

Wald Commits scm-commit at wald.intevation.org
Mon Dec 17 17:57:22 CET 2012


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1355763266 -3600
# Node ID 52068f1231daf16937d10b978e208e19c5833e2f
# Parent  03c66281c16b4fb87626da9f5bc03f868d5db1af
Fixed NPE in empty style editor window.

diff -r 03c66281c16b -r 52068f1231da flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java
--- 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();
                 }


More information about the Dive4elements-commits mailing list