- Timestamp:
- 08/22/08 10:54:44 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/items/widgets/charts/TimeSeries.java
r235 r247 124 124 AttributeValuePair avp = new AttributeValuePair(t.getText()); 125 125 if (avp != null) { 126 Double attribute = avp.getDoubleAttribute(); 127 Double value = avp.getDoubleValue(); 128 // If the data is not valid move to the next item 129 if (value == null) 126 Double attribute = null; 127 try { 128 attribute = avp.getDoubleAttribute(); 129 } catch (NumberFormatException e) { 130 } 131 Double value = null; 132 try { 133 // If the data is not valid move to the next item 134 value = avp.getDoubleValue(); 135 } catch (NumberFormatException e) { 130 136 continue; 137 } 138 131 139 try { 132 140 RegularTimePeriod rtp = null; … … 176 184 newSeries.add(rtp, value); 177 185 foundData = true; 178 if (newColor == null)186 if (newColor == null) 179 187 newColor = i.getColor(); 180 188 } catch (Exception e) {
Note:
See TracChangeset
for help on using the changeset viewer.