Issue #2287 Fix yet another NullPointer in GFEColorBarResource

Change-Id: I96ff6cdff49d444f4cb90fb219531901c19460ae

Former-commit-id: dabdce1482cc80b794e8f82ac55d6867a43f0c89
This commit is contained in:
Ron Anderson 2013-08-29 17:38:01 -05:00
parent 4e768e812d
commit 37d94d921b

View file

@ -691,7 +691,8 @@ public class GFEColorbarResource extends
updateColorbar(parm);
} else if (message instanceof GridDataChangedMsg) {
GridDataChangedMsg msg = (GridDataChangedMsg) message;
if (msg.getParmID().equals(currentParm.getParmID())
if (currentParm != null
&& msg.getParmID().equals(currentParm.getParmID())
&& msg.getTimeRange().contains(
currentParm.getDataManager()
.getSpatialDisplayManager()