Issue #2596 - Add check for null coordinates.
Change-Id: I18f7a129ec428e51b36ac5b76cae194cf2c01e75 Former-commit-id:a6509aad8c
[formerlya6509aad8c
[formerly 11f3705080210161e6915309a4aec423b307cce8]] Former-commit-id:9754f0d8dd
Former-commit-id:ecb0d45b24
This commit is contained in:
parent
3c9ebe52d3
commit
7ba61e6b53
1 changed files with 8 additions and 6 deletions
|
@ -127,6 +127,7 @@ import com.vividsolutions.jts.index.strtree.STRtree;
|
|||
* or right click to select TimeSeries
|
||||
* Jan 30, 2013 15646 wkwock Fix middle button drag map incorrect
|
||||
* Feb 05, 2013 1578 rferrel Changes for non-blocking singleton TimeSeriesDlg.
|
||||
* Feb 18, 2014 2596 mpduff Check for null coordinates.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -143,9 +144,9 @@ public class MultiPointResource extends
|
|||
private static class HydroImageMakerCallback implements
|
||||
IRenderedImageCallback {
|
||||
|
||||
private String dispClass;
|
||||
private final String dispClass;
|
||||
|
||||
private RGB color;
|
||||
private final RGB color;
|
||||
|
||||
private HydroImageMakerCallback(String dispClass, RGB color) {
|
||||
this.dispClass = dispClass;
|
||||
|
@ -208,9 +209,9 @@ public class MultiPointResource extends
|
|||
|
||||
private static final RGB LABEL_COLOR = RGBColors.getRGBColor("White");
|
||||
|
||||
private Map<String, Map<RGB, IImage>> imageMap = new HashMap<String, Map<RGB, IImage>>();
|
||||
private final Map<String, Map<RGB, IImage>> imageMap = new HashMap<String, Map<RGB, IImage>>();
|
||||
|
||||
private Map<String, GageData> dataMap = new HashMap<String, GageData>();
|
||||
private final Map<String, GageData> dataMap = new HashMap<String, GageData>();
|
||||
|
||||
private STRtree strTree = new STRtree();
|
||||
|
||||
|
@ -895,6 +896,7 @@ public class MultiPointResource extends
|
|||
public Map<String, Object> interrogate(ReferencedCoordinate rcoord)
|
||||
throws VizException {
|
||||
List<GageData> gageDataList = pdcManager.getObsReportList();
|
||||
|
||||
try {
|
||||
GageData selected = null;
|
||||
Coordinate coord = rcoord.asLatLon();
|
||||
|
@ -905,7 +907,7 @@ public class MultiPointResource extends
|
|||
|
||||
if ((gageDataList != null) && (gageDataList.size() > 0)) {
|
||||
for (GageData gd : gageDataList) {
|
||||
if (gd.isUse()) {
|
||||
if (gd.isUse() && gd.getCoordinate() != null) {
|
||||
double[] gagePoint = descriptor
|
||||
.worldToPixel(new double[] {
|
||||
gd.getCoordinate().x,
|
||||
|
|
Loading…
Add table
Reference in a new issue