Omaha #3071 Fix one more possible NPE
Change-Id: I23c3f47d354a2a5ee4576a6040e2012b3b39dfe6 Former-commit-id:d772e2b49b
[formerlyd772e2b49b
[formerly 855c5410fc4bf2e33f6dcd560f0c8441199ad0ad]] Former-commit-id:fde392dcd1
Former-commit-id:d1f5016eb9
This commit is contained in:
parent
92d41cefe3
commit
94789ea5cf
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue