ASM #16773 - WarnGen can become disabled when a followup is selected

Change-Id: Ibe0e3b18914840515f8bc9d844a2ffb0a6abddf0

Former-commit-id: b3025aacb0 [formerly 5048af915b004067ec8a6e788a0e9ad3e006c9d8]
Former-commit-id: 8ab4649312
This commit is contained in:
David Friedman 2014-09-25 21:05:49 +00:00
parent 3e1d8d83a9
commit c19d9ee755

View file

@ -105,7 +105,8 @@ import com.vividsolutions.jts.geom.LineString;
* 06-17-2014 DR17409 mgamazaychikov Fix futurePoints calculation in generateNewTrackInfo()
* and generateExistingTrackInfo()
* 08-21-2014 DR 17500 Qinglu Lin handle the situation where frameTime is null in paintTrack().
*
* 09-25-2014 ASM #16773 D. Friedman Fix NPE.
*
* </pre>
*
* @author mschenke
@ -1282,6 +1283,11 @@ public class StormTrackDisplay implements IRenderable {
private void paintLabels(IGraphicsTarget target,
StormTrackProperties paintProps) throws VizException {
StormTrackState state = paintProps.getState();
if (state.timePoints == null || state.futurePoints == null) {
return;
}
// get the magnification from the state
float magnification = state.magnification;
// find a nice looking radius