Issue #2359 fix annoying ncep null pointer
Change-Id: I5d606f42bfe4060f8874d2cfaf01a48b548ce25e Former-commit-id:fa79f2aa14
[formerlyf46b6e0a8f
[formerlyc7addfbdbf
] [formerlyfa79f2aa14
[formerly 0cb0975786aa578e93fe06227c666feb759e0433]]] Former-commit-id:f46b6e0a8f
[formerlyc7addfbdbf
] Former-commit-id:f46b6e0a8f
Former-commit-id:9d7eb95eac
This commit is contained in:
parent
1f34e56258
commit
b7ca47c694
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,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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue