diff flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java @ 4292:250c4a0fa696

Remove InfoPanel stack only if it exists Avoid raised exception if an other artifact than WINFO or MINFO is selected.
author Björn Ricks <bjoern.ricks@intevation.de>
date Mon, 29 Oct 2012 10:39:33 +0100
parents 6c776f102e03
children 4c2005e6ac65
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java	Mon Oct 29 10:27:09 2012 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java	Mon Oct 29 10:39:33 2012 +0100
@@ -981,7 +981,10 @@
 
     private void removeInfoPanel() {
         GWT.log("ParameterList - removeInfoPanel");
-        stack.removeSection(InfoPanel.SECTION_ID);
+        SectionStackSection exists = stack.getSection(InfoPanel.SECTION_ID);
+        if (exists != null) {
+            stack.removeSection(InfoPanel.SECTION_ID);
+        }
     }
 
 

http://dive4elements.wald.intevation.org