Issue #2359 fix annoying ncep null pointer

Change-Id: I5d606f42bfe4060f8874d2cfaf01a48b548ce25e

Former-commit-id: 0cb0975786aa578e93fe06227c666feb759e0433
This commit is contained in:
Nate Jensen 2014-01-17 10:24:10 -06:00
parent bfd3cc7d16
commit fa79f2aa14

View file

@ -11,6 +11,7 @@
* 07/2011 F. J. Yen Fix for RTN TTR 9973--ConvSigment Decoder Ignoring
* time range (NonConvsigmet, too). Set the rangeEnd
* time to the endTime
* Jan 17, 2014 njensen Handle if one or more locations not found in LatLonLocTbl
*
* This code has been developed by the SIB for use in the AWIPS2 system.
*/
@ -344,14 +345,17 @@ public class NonConvSigmetParser {
currentLocation.setLocationLine(lines);
currentLocation.setLocation(location);
point = LatLonLocTbl.getLatLonPoint(location, "vors");
currentLocation.setIndex(idxLocation + 1);
idxLocation++;
currentLocation.setLatitude(point
if(point != null) {
currentLocation.setIndex(idxLocation + 1);
idxLocation++;
currentLocation.setLatitude(point
.getLatitude(LatLonPoint.INDEGREES));
currentLocation.setLongitude(point
currentLocation.setLongitude(point
.getLongitude(LatLonPoint.INDEGREES));
recordTable.addNonConvSigmetLocation(currentLocation);
recordTable.addNonConvSigmetLocation(currentLocation);
}
}
hasLocationLine = (idxLocation > 0);
} else {
hasLocationLine = false;
}
@ -406,4 +410,4 @@ public class NonConvSigmetParser {
return currentRecord;
}
}
}