Changeset 9859 in josm for trunk/src/org


Ignore:
Timestamp:
2016-02-23T19:59:19+01:00 (9 years ago)
Author:
simon04
Message:

see #12514, fix #12560 - Fix MapCSSParserTest#testMinMaxFunctions unit test + NoSuchElementException while downloading relation members

Regression of r9854

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/ExpressionFactory.java

    r9540 r9859  
    11371137            });
    11381138            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);
    11401140        }
    11411141
Note: See TracChangeset for help on using the changeset viewer.