mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
Fixed a bug for apps with no plugins found
This commit is contained in:
parent
14de932149
commit
a0de0934bb
1 changed files with 5 additions and 1 deletions
|
@ -268,8 +268,12 @@ public abstract class PluginsConfiguration {
|
|||
}
|
||||
|
||||
public List<PluginDescription> getPluginDescriptions(PluginPackage pluginPackage) {
|
||||
List<PluginDescription> list = descriptionsByPackage.get(pluginPackage);
|
||||
List<PluginDescription> stableList = new ArrayList<>();
|
||||
List<PluginDescription> list = descriptionsByPackage.get(pluginPackage);
|
||||
if (list == null) {
|
||||
// This should not happen. This implies an environment where no plugins are found,
|
||||
return stableList;
|
||||
}
|
||||
for (PluginDescription pluginDescription : list) {
|
||||
if (pluginDescription.getStatus() == PluginStatus.UNSTABLE ||
|
||||
pluginDescription.getStatus() == PluginStatus.HIDDEN) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue