ASM #16730 - WarnGen Watch wording error when issuing product only over Marine Locations

Change-Id: I361a1635cf11f3c66801f33c74034028b3e0271d

Former-commit-id: ea4aed7b84 [formerly 94d78ed010] [formerly 8d7ba120a2] [formerly ea4aed7b84 [formerly 94d78ed010] [formerly 8d7ba120a2] [formerly bed361fe35 [formerly 8d7ba120a2 [formerly 17d27fca04fb733d74e5bac99bfed3112bd81b6c]]]]
Former-commit-id: bed361fe35
Former-commit-id: aaba0a2933 [formerly 78217ab3e9] [formerly 69acf378f1c22370ad97e1e83cf8c1e6f9500f7d [formerly 93e07181c0]]
Former-commit-id: c544543f8ff90995d32456eb0339301c79318170 [formerly 8a1e71f784]
Former-commit-id: a80f112c90
This commit is contained in:
David Friedman 2014-09-10 19:25:55 +00:00
parent fd4fa84413
commit 4310c40a9d

View file

@ -213,6 +213,7 @@ import com.vividsolutions.jts.io.WKTReader;
* 07/28/2014 DR 17475 Qinglu Lin Updated populateStrings() and findLargestQuadrant(), removed findLargestGeometry(),
* added createAreaAndCentroidMaps() and movePopulatePt(), updated paintText() to center W.
* 08/20/2014 ASM #16703 D. Friedman Make geo feature types for watches explicit
* 09/10/2014 ASM #16730 D. Friedman Fix NPE.
* </pre>
*
* @author mschenke
@ -340,9 +341,11 @@ public class WarngenLayer extends AbstractStormTrackResource {
private Set<String> getAllFipsInArea(Geometry warningArea) {
Set<String> fipsIds = new HashSet<String>();
for (int n = 0; n < warningArea.getNumGeometries(); ++n) {
Geometry area = warningArea.getGeometryN(n);
fipsIds.add(getFips(area));
if (warningArea != null) {
for (int n = 0; n < warningArea.getNumGeometries(); ++n) {
Geometry area = warningArea.getGeometryN(n);
fipsIds.add(getFips(area));
}
}
return fipsIds;
}