summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlin16 <jlin16@6f19259b-4bc3-4df7-8a09-765794883524>2006-12-26 06:46:27 +0000
committerjlin16 <jlin16@6f19259b-4bc3-4df7-8a09-765794883524>2006-12-26 06:46:27 +0000
commit9ccee2a037c24bc88927a006a52160e94b374f3c (patch)
tree96c473c1586bbc18b5bc76ef288da1d6c4e112d9
parenta477a165ffb7061b917a588a041a2fcb7e055c47 (diff)
downloadedk2-9ccee2a037c24bc88927a006a52160e94b374f3c.zip
edk2-9ccee2a037c24bc88927a006a52160e94b374f3c.tar.gz
edk2-9ccee2a037c24bc88927a006a52160e94b374f3c.tar.bz2
Add null pointer check to drop-down list of platform Pcd editor.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2139 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdModuleSA.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdModuleSA.java b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdModuleSA.java
index 380a702..1fd0210 100644
--- a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdModuleSA.java
+++ b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdModuleSA.java
@@ -499,7 +499,7 @@ public class FpdModuleSA extends JDialog implements ActionListener {
Iterator<LibraryClassDescriptor> lcdi = this.classConsumed.keySet().iterator();
while (lcdi.hasNext()) {
LibraryClassDescriptor lcd = lcdi.next();
- if (lcd.className.equals(className)) {
+ if ((lcd.className != null) && lcd.className.equals(className)) {
return this.classConsumed.get(lcd);
}
}
@@ -748,7 +748,7 @@ public class FpdModuleSA extends JDialog implements ActionListener {
jTextFieldMaxDatumSize.setText(model.getValueAt(selectedRow, 4)+"");
jTextFieldPcdDefault.setEnabled(true);
jTextFieldPcdDefault.setText(model.getValueAt(selectedRow, 6)+"");
- if (model.getValueAt(selectedRow, 5).equals("VOID*")) {
+ if ((model.getValueAt(selectedRow, 5) != null) && model.getValueAt(selectedRow, 5).equals("VOID*")) {
if (pcdInfo[1].equals("FEATURE_FLAG")) {
jTextFieldMaxDatumSize.setVisible(false);
}
@@ -1703,7 +1703,7 @@ private JComboBox getJComboBoxItemType() {
return;
}
- if (jComboBoxItemType.getSelectedItem().equals("FIXED_AT_BUILD")) {
+ if (jComboBoxItemType.getSelectedItem() != null && jComboBoxItemType.getSelectedItem().equals("FIXED_AT_BUILD")) {
jTextFieldPcdDefault.setEnabled(true);
}
else {