mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 17:05:43 +01:00
fix npe
This commit is contained in:
@@ -12,8 +12,10 @@ class PluginDependencyTracker {
|
|||||||
private final Map<String, Collection<String>> plugins = new HashMap<>();
|
private final Map<String, Collection<String>> plugins = new HashMap<>();
|
||||||
|
|
||||||
void addInstalled(PluginDescriptor plugin) {
|
void addInstalled(PluginDescriptor plugin) {
|
||||||
|
if (plugin.getDependencies() != null) {
|
||||||
plugin.getDependencies().forEach(dependency -> addDependency(plugin.getInformation().getName(), dependency));
|
plugin.getDependencies().forEach(dependency -> addDependency(plugin.getInformation().getName(), dependency));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void removeInstalled(PluginDescriptor plugin) {
|
void removeInstalled(PluginDescriptor plugin) {
|
||||||
doThrow()
|
doThrow()
|
||||||
|
|||||||
Reference in New Issue
Block a user