diff options
author | Alena Laskavaia | 2009-04-08 18:58:09 +0000 |
---|---|---|
committer | Alena Laskavaia | 2009-04-08 18:58:09 +0000 |
commit | ee63904aa294e55afcfe598843b92ab3c4c8e7df (patch) | |
tree | 10e19e3c6545d17654ec21e67a541c9700ff7af0 | |
parent | f1523dca93ab25d76bfff2a044d3239610875236 (diff) | |
download | org.eclipse.cdt-ee63904aa294e55afcfe598843b92ab3c4c8e7df.tar.gz org.eclipse.cdt-ee63904aa294e55afcfe598843b92ab3c4c8e7df.tar.xz org.eclipse.cdt-ee63904aa294e55afcfe598843b92ab3c4c8e7df.zip |
[271628] - fixed NPE
-rw-r--r-- | core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/newui/AbstractPage.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/newui/AbstractPage.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/newui/AbstractPage.java index 8db9b15bd4e..8c869b27232 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/newui/AbstractPage.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/newui/AbstractPage.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2008 Intel Corporation and others. + * Copyright (c) 2007, 2009 Intel Corporation, QNX Software Systems, and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -8,6 +8,7 @@ * Contributors: * Intel Corporation - initial API and implementation * Markus Schorn (Wind River Systems) + * QNX Software Systems - [271628] NPE in configs for project that failed to convert *******************************************************************************/ package org.eclipse.cdt.ui.newui; @@ -595,7 +596,8 @@ implements // Do not re-read if list already created by another page if (cfgDescs == null) { - cfgDescs = CDTPropertyManager.getProjectDescription(this, prj).getConfigurations(); + ICProjectDescription pDesc = CDTPropertyManager.getProjectDescription(this, prj); + cfgDescs = (pDesc == null)? null : pDesc.getConfigurations(); if (cfgDescs == null || cfgDescs.length == 0) return; Arrays.sort(cfgDescs, CDTListComparator.getInstance()); |