Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Recoskie2007-01-02 18:17:42 +0000
committerChris Recoskie2007-01-02 18:17:42 +0000
commit982340c7f22b704135af357b101ee853a282d111 (patch)
treeb9595dfb6114701c7ca7bb2fba1f3008699884d5
parent030d41875d09edccd8c1225b856c49ab1b087492 (diff)
downloadorg.eclipse.cdt-982340c7f22b704135af357b101ee853a282d111.tar.gz
org.eclipse.cdt-982340c7f22b704135af357b101ee853a282d111.tar.xz
org.eclipse.cdt-982340c7f22b704135af357b101ee853a282d111.zip
RESOLVED - bug 166964: MBSCustomPageData#getNatures() NPE
https://bugs.eclipse.org/bugs/show_bug.cgi?id=166964
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/MBSCustomPageData.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/MBSCustomPageData.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/MBSCustomPageData.java
index b49e0ad7292..6404f708775 100644
--- a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/MBSCustomPageData.java
+++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/MBSCustomPageData.java
@@ -157,6 +157,10 @@ public final class MBSCustomPageData
*/
public String[] getNatures()
{
+
+ if (natureSet == null || natureSet.size() == 0)
+ return null;
+
Object[] objArray = natureSet.toArray();
String[] strArray = new String[objArray.length];

Back to the top