Issue #2359 fix annoying ncep null pointer
Change-Id: I5d606f42bfe4060f8874d2cfaf01a48b548ce25e Former-commit-id: 0cb0975786aa578e93fe06227c666feb759e0433
This commit is contained in:
parent
bfd3cc7d16
commit
fa79f2aa14
1 changed files with 10 additions and 6 deletions
|
@ -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,6 +345,7 @@ public class NonConvSigmetParser {
|
|||
currentLocation.setLocationLine(lines);
|
||||
currentLocation.setLocation(location);
|
||||
point = LatLonLocTbl.getLatLonPoint(location, "vors");
|
||||
if(point != null) {
|
||||
currentLocation.setIndex(idxLocation + 1);
|
||||
idxLocation++;
|
||||
currentLocation.setLatitude(point
|
||||
|
@ -352,6 +354,8 @@ public class NonConvSigmetParser {
|
|||
.getLongitude(LatLonPoint.INDEGREES));
|
||||
recordTable.addNonConvSigmetLocation(currentLocation);
|
||||
}
|
||||
}
|
||||
hasLocationLine = (idxLocation > 0);
|
||||
} else {
|
||||
hasLocationLine = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue