Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
4291:6589f1c95101 | 4292:250c4a0fa696 |
---|---|
979 } | 979 } |
980 } | 980 } |
981 | 981 |
982 private void removeInfoPanel() { | 982 private void removeInfoPanel() { |
983 GWT.log("ParameterList - removeInfoPanel"); | 983 GWT.log("ParameterList - removeInfoPanel"); |
984 stack.removeSection(InfoPanel.SECTION_ID); | 984 SectionStackSection exists = stack.getSection(InfoPanel.SECTION_ID); |
985 if (exists != null) { | |
986 stack.removeSection(InfoPanel.SECTION_ID); | |
987 } | |
985 } | 988 } |
986 | 989 |
987 | 990 |
988 private void renderInfo(String river, DataList[] data) { | 991 private void renderInfo(String river, DataList[] data) { |
989 GWT.log("ParameterList - renderInfo"); | 992 GWT.log("ParameterList - renderInfo"); |