Mercurial > dive4elements > river
changeset 4128:11c589d68f13
Fix for NPE in FLYSWorkspace.bringUp() #933
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Sun, 14 Oct 2012 10:15:50 +0200 |
parents | 1e9e7b7d9f15 |
children | 989f6f0d1986 |
files | flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/FLYSWorkspace.java |
diffstat | 2 files changed, 14 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-client/ChangeLog Sun Oct 14 09:46:58 2012 +0200 +++ b/flys-client/ChangeLog Sun Oct 14 10:15:50 2012 +0200 @@ -1,3 +1,8 @@ +2012-10-14 Christian Lins <christian.lins@intevation.de> + + * flys-client/src/main/java/de/intevation/flys/client/client/ui/FLYSWorkspace.java: + Fix for NPE in FLYSWorkspace.bringUp() (#933). + 2012-10-14 Christian Lins <christian.lins@intevation.de> * flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java,
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/FLYSWorkspace.java Sun Oct 14 09:46:58 2012 +0200 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/FLYSWorkspace.java Sun Oct 14 10:15:50 2012 +0200 @@ -1,5 +1,7 @@ package de.intevation.flys.client.client.ui; +import com.google.gwt.core.client.GWT; + import com.smartgwt.client.widgets.Canvas; import java.util.HashMap; @@ -59,8 +61,13 @@ public void bringUp(String uuid) { CollectionView view = views.get(uuid); - view.show(); - view.restore(); + if (view != null) { + view.show(); + view.restore(); + } + else { + GWT.log("FLYSWorkspace.bringUp() failed!"); + } }