Changeset 3331 in josm


Ignore:
Timestamp:
2010-06-15T08:46:10+02:00 (10 years ago)
Author:
bastiK
Message:

fixed #5134 - bogus warnings "failed to locate image". Fixed the cause for the warnings instead.

Location:
trunk/src/org/openstreetmap/josm/plugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/plugins/PluginInformation.java

    r3330 r3331  
    174174        author = attr.getValue("Author");
    175175        iconPath = attr.getValue("Plugin-Icon");
    176         if (iconPath != null) {
     176        if (iconPath != null && file != null) {
    177177            // extract icon from the plugin jar file
    178178            icon = ImageProvider.getIfAvailable(null, null, null, iconPath, file);
  • trunk/src/org/openstreetmap/josm/plugins/ReadLocalPluginInformationTask.java

    r3330 r3331  
    9898
    9999    protected void scanIconCacheFiles(ProgressMonitor monitor, File pluginsDirectory) {
    100         System.err.println("scanIconCacheFiles");
    101100        File[] siteCacheFiles = pluginsDirectory.listFiles(
    102101                new FilenameFilter() {
Note: See TracChangeset for help on using the changeset viewer.