From 9b327ec4dfa9b21fba9cbfae3a81c3b733ca1802 Mon Sep 17 00:00:00 2001 From: Alena Laskavaia Date: Wed, 8 Apr 2009 19:00:06 +0000 Subject: [PATCH] [271628] -fixed NPE (applied patch) --- .../src/org/eclipse/cdt/ui/newui/AbstractPage.java | 6 ++++-- 1 file 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 9a97648885a..9321db0194c 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 @@ -9,6 +9,7 @@ * Intel Corporation - initial API and implementation * Markus Schorn (Wind River Systems) * Andrew Gvozdev + * QNX Software Systems - [271628] NPE in configs for project that failed to convert *******************************************************************************/ package org.eclipse.cdt.ui.newui; @@ -718,7 +719,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());