Omaha #3632 fixed index out of bounds for TCSResource

Change-Id: I1d0811d2565441a01b104a1ad2a1c1303c756907

Former-commit-id: 4a93d0e571 [formerly 4a93d0e571 [formerly 1c96a60c25091ddec997f5d9e3b604c0fd7689bc]]
Former-commit-id: 0808a6b662
Former-commit-id: a410a42e4d
This commit is contained in:
Brian Clements 2014-09-17 11:16:55 -05:00
parent 8133f5958e
commit 8df79c9b1d

View file

@ -69,7 +69,7 @@ import com.raytheon.viz.pointdata.util.SymbolLoader;
import com.vividsolutions.jts.geom.Coordinate;
/**
* TODO Add Description
* Tropical Cyclone summary resource
*
* <pre>
*
@ -79,6 +79,7 @@ import com.vividsolutions.jts.geom.Coordinate;
* ------------ ---------- ----------- --------------------------
* Oct 22, 2010 jsanchez Initial creation
* Jul 29, 2014 #3465 mapeters Updated deprecated drawString() calls.
* Sep 17, 2014 3632 bclement fixed index out of bounds
*
* </pre>
*
@ -160,7 +161,7 @@ public class TCSResource extends
}
if (pdc != null) {
for (int uriCounter = 0; uriCounter < pdc.getAllocatedSz(); uriCounter++) {
for (int uriCounter = 0; uriCounter < pdc.getCurrentSz(); uriCounter++) {
PointDataView pdv = pdc.readRandom(uriCounter);
if (resourceData.isHourlyForecast) {
paintHourlyForecast(target, paintProps, pdv, scale);