Merge "Issue #2359 fix annoying ncep null pointer" into omaha_14.2.1

Former-commit-id: 783e76158b [formerly d2e203303f] [formerly ff34eb99c8] [formerly ff34eb99c8 [formerly a52587bdd1]] [formerly cde0d54b62 [formerly ff34eb99c8 [formerly a52587bdd1] [formerly cde0d54b62 [formerly ec701d2b15a629bf58656b3566493afe8c28db0b]]]]
Former-commit-id: cde0d54b62
Former-commit-id: ae382513c25640b09431941cf8199065d7df88ae [formerly 17a1bf34605552140361c01742500e1c16aeb935] [formerly 3e97d86000 [formerly c68447f9b2]]
Former-commit-id: 3e97d86000
Former-commit-id: 496c5d5ac1
This commit is contained in:
Nate Jensen 2014-01-17 10:50:02 -06:00 committed by Gerrit Code Review
commit 6991f62e7a

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;
}
}
}