ASM #16844 - WarnGen can become disabled when moving storm track

Change-Id: Ic54b4f10eea64db40ce7f9c5a787fe344a8d916a

Former-commit-id: b8556f48c4 [formerly 455f1ad7aa] [formerly 955809450d] [formerly 68f985d668 [formerly 955809450d [formerly f4000b425b8da6bb16fe124c0e5eaaab78a6b3b2]]]
Former-commit-id: 68f985d668
Former-commit-id: a9b3aa62a2f496643fd9046866f2e1b1496d8361 [formerly 7176b476a2]
Former-commit-id: 3f1ed65033
This commit is contained in:
David Friedman 2014-10-10 19:33:21 +00:00
parent 3d985d75c4
commit 2013b9427c

View file

@ -109,8 +109,7 @@ import com.vividsolutions.jts.geom.LineString;
* 08-21-2014 DR 15700 Qinglu Lin handle the situation where frameTime is null in paintTrack().
* 09-09-2014 RM #657 Qinglu Lin handle StormTrackState.trackType is null.
* 09-25-2014 ASM #16773 D. Friedman Fix NPE.
*
>>>>>>> master_14.2.4
* 10-10-2014 ASM #16844 D. Friedman Prevent some errors when moving track.
* </pre>
*
* @author mschenke
@ -842,7 +841,9 @@ public class StormTrackDisplay implements IRenderable {
PaintProperties paintProps) throws ImpossibleTrackException {
int moveIndex = this.trackUtil.getCurrentFrame(paintProps
.getFramesInfo());
moveIndex = Math.min(moveIndex, state.timePoints.length - 1);
int pivotIndex = state.displayedPivotIndex;
pivotIndex = Math.min(pivotIndex, state.timePoints.length - 1);
double angle;
double oppositeAngle;