Ticket #18412: 18412.patch

File 18412.patch, 660 bytes (added by taylor.smock, 4 years ago)

Don't call ImageProvider with null

  • src/org/openstreetmap/josm/plugins/surveyor/ButtonDescription.java

     
    174174
    175175        String actionName = tr(getLabel()) + " (" + hotkey + ")";
    176176
    177         Icon icon = ImageProvider.getIfAvailable(null, iconName);
     177        Icon icon = ImageProvider.getIfAvailable(iconName);
    178178        if (icon == null)
    179179            icon = ImageProvider.getIfAvailable("markers", iconName);
    180180        if (icon == null)