changeset 5217:6f23afa5323e

Fixed DoubleArrayPanel. Avoid NPE while creating panel.
author Raimund Renkert <rrenkert@intevation.de>
date Mon, 11 Mar 2013 14:53:15 +0100
parents c0bdbe24c115
children 028ff568b196
files flys-client/src/main/java/de/intevation/flys/client/client/ui/DoubleArrayPanel.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/DoubleArrayPanel.java	Mon Mar 11 13:22:50 2013 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/DoubleArrayPanel.java	Mon Mar 11 14:53:15 2013 +0100
@@ -64,7 +64,9 @@
         sti.setValue(title);
 
         ti.addBlurHandler(blurHandler);
-        ti.addFocusHandler(focusHandler);
+        if (focusHandler != null) {
+            ti.addFocusHandler(focusHandler);
+        }
 
         if (titleOrientation == TitleOrientation.RIGHT) {
             setFields(ti, sti);

http://dive4elements.wald.intevation.org