comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/FLYSWorkspace.java @ 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 6a8f83c538e3
children c0a275c581fb
comparison
equal deleted inserted replaced
4127:1e9e7b7d9f15 4128:11c589d68f13
1 package de.intevation.flys.client.client.ui; 1 package de.intevation.flys.client.client.ui;
2
3 import com.google.gwt.core.client.GWT;
2 4
3 import com.smartgwt.client.widgets.Canvas; 5 import com.smartgwt.client.widgets.Canvas;
4 6
5 import java.util.HashMap; 7 import java.util.HashMap;
6 import java.util.Map; 8 import java.util.Map;
57 59
58 60
59 public void bringUp(String uuid) { 61 public void bringUp(String uuid) {
60 CollectionView view = views.get(uuid); 62 CollectionView view = views.get(uuid);
61 63
62 view.show(); 64 if (view != null) {
63 view.restore(); 65 view.show();
66 view.restore();
67 }
68 else {
69 GWT.log("FLYSWorkspace.bringUp() failed!");
70 }
64 } 71 }
65 72
66 73
67 /** 74 /**
68 * Removes a project from workspace (view) and clears its reference from 75 * Removes a project from workspace (view) and clears its reference from

http://dive4elements.wald.intevation.org