Ignore:
Timestamp:
2015-02-16T15:40:51+01:00 (7 years ago)
Author:
bastiK
Message:

#11090 - do not load plugins unless dependencies can be loaded
(or are already loaded)

File:
1 edited

Legend:

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

    r8070 r8074  
    525525     * No other plugins this plugin depends on should be missing.
    526526     *
    527      * @param parent The parent Component used to display error popup
     527     * @param parent The parent Component used to display error popup. If parent is
     528     * null, the error popup is suppressed
    528529     * @param plugins the collection of all loaded plugins
    529530     * @param plugin the plugin for which preconditions are checked
     
    551552            }
    552553            if (!missingPlugins.isEmpty()) {
    553                 alertMissingRequiredPlugin(parent, plugin.name, missingPlugins);
     554                if (parent != null) {
     555                    alertMissingRequiredPlugin(parent, plugin.name, missingPlugins);
     556                }
    554557                return false;
    555558            }
Note: See TracChangeset for help on using the changeset viewer.