Merge remote-tracking branch 'origin/GP-1557-dragonmacher-options-npe'

into Ghidra_10.1 (Closes #3686)
This commit is contained in:
ghidra1
2021-11-30 19:24:02 -05:00
2 changed files with 16 additions and 15 deletions

View File

@@ -410,8 +410,10 @@ public class OptionsPanel extends JPanel {
}
String[] descriptions = editor.getOptionDescriptions();
for (String string : descriptions) {
results.add(string);
if (descriptions != null) {
for (String string : descriptions) {
results.add(string);
}
}
}
}

View File

@@ -1,6 +1,5 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -22,16 +21,16 @@ package ghidra.framework.options;
* editors that can paint and edit a group of interrelated options.
*/
public interface CustomOptionsEditor {
/**
* Gets the names of the options that this editor is editing.
* @return the names of the options that this editor is editing.
*/
public String[] getOptionNames();
/**
* Gets the descriptions of the options that this editor is editing.
* @return the descriptions of the options that this editor is editing.
*/
public String[] getOptionDescriptions();
/**
* Gets the names of the options that this editor is editing.
* @return the names of the options that this editor is editing; may not be null.
*/
public String[] getOptionNames();
/**
* Gets the descriptions of the options that this editor is editing.
* @return the descriptions of the options that this editor is editing; may be null.
*/
public String[] getOptionDescriptions();
}