changeset 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 6589f1c95101
children 2a64d42a75e6
files flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
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