Changeset 17780 in josm for trunk/test


Ignore:
Timestamp:
2021-04-14T20:00:37+02:00 (3 years ago)
Author:
simon04
Message:

see #20744, fix #20764 - MapCSS: fix NPE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSParserTest.java

    r17770 r17780  
    613613                "neg: -13;" +
    614614                "not: !0;" +
     615                "null1: tag(x1) + tag(x2);" +
     616                "null2: 3 + tag(does_not_exist) + 5;" +
    615617                "}");
    616618        source.loadStyleSource();
     
    623625        assertEquals(-13.0, mc.getCascade(null).get("neg"));
    624626        assertEquals(true, mc.getCascade(null).get("not"));
     627        assertNull(mc.getCascade(null).get("null1"));
     628        assertEquals(8.0, mc.getCascade(null).get("null2"));
    625629    }
    626630
Note: See TracChangeset for help on using the changeset viewer.