Changeset 11543 in josm for trunk/test


Ignore:
Timestamp:
2017-02-08T08:41:24+01:00 (8 years ago)
Author:
stoecker
Message:

fix NPE in test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/PreferencesTest.java

    r10947 r11543  
    4343        assertEquals(0x12, new ColorProperty("foo", new Color(0x12345678, true)).get().getAlpha());
    4444        assertTrue(Main.pref.putColor("bar", new Color(0x12345678, true)));
    45         assertEquals(0x12, new ColorProperty("bar", (String) null).get().getAlpha());
     45        assertEquals(0x12, new ColorProperty("bar", Color.RED).get().getAlpha());
    4646    }
    4747
Note: See TracChangeset for help on using the changeset viewer.