mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
[271628] -fixed NPE (applied patch)
This commit is contained in:
parent
413cbe0f6f
commit
9b327ec4df
1 changed files with 4 additions and 2 deletions
|
@ -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());
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue