Changeset 9859 in josm for trunk/src/org
- Timestamp:
- 2016-02-23T19:59:19+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/ExpressionFactory.java
r9540 r9859 1137 1137 }); 1138 1138 final Collection<Float> nonNullList = Utils.filter(floats, Predicates.not(Predicates.isNull())); 1139 return computeMax ? Collections.max(nonNullList) : Collections.min(nonNullList);1139 return nonNullList.isEmpty() ? Float.NaN : computeMax ? Collections.max(nonNullList) : Collections.min(nonNullList); 1140 1140 } 1141 1141
Note:
See TracChangeset
for help on using the changeset viewer.