Skip to content

Commit

Permalink
Checking if refPlugin is not null (#3031)
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonioG70 authored Dec 12, 2023
1 parent bb64e30 commit ac7659f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,11 @@ public JobBundle retrieveJobBundle(String jobId, List<String> fieldsToReturn) th
}
if (pluginId != null) {
PluginInfo refPlugin = RodaCoreFactory.getPluginManager().getPluginInfo(pluginId);
pluginsInfo.add(refPlugin);
if (refPlugin != null) {
pluginsInfo.add(refPlugin);
} else {
LOGGER.warn("Could not find plugin: " + pluginId);
}
}
}
}
Expand Down

0 comments on commit ac7659f

Please sign in to comment.