Omaha #3071 Fix one more possible NPE

Change-Id: I23c3f47d354a2a5ee4576a6040e2012b3b39dfe6

Former-commit-id: d772e2b49b [formerly d772e2b49b [formerly 855c5410fc4bf2e33f6dcd560f0c8441199ad0ad]]
Former-commit-id: fde392dcd1
Former-commit-id: d1f5016eb9
This commit is contained in:
Ron Anderson 2014-06-04 16:26:25 -05:00
parent 92d41cefe3
commit 94789ea5cf

View file

@ -813,6 +813,9 @@ public class D2DGridDatabase extends VGridDatabase {
try {
// Gets the metadata from the grib metadata database
D2DParm parm = this.gfeParms.get(parmId);
if (parm == null) {
throw new GfeException("Unknown parmId: " + parmId);
}
if (!GridPathProvider.STATIC_PARAMETERS.contains(parmId
.getParmName())) {
fcstHr = parm.getTimeRangeToFcstHr().get(timeRange);