mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 250625 - NPE in AbstractFileCreationWizardPage
This commit is contained in:
parent
11972439bb
commit
10b2bb8da5
1 changed files with 17 additions and 15 deletions
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2004, 2007 QNX Software Systems and others.
|
||||
* Copyright (c) 2004, 2008 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
|
||||
|
@ -241,6 +241,7 @@ public abstract class AbstractFileCreationWizardPage extends NewElementWizardPag
|
|||
}
|
||||
|
||||
protected void updateTemplates() {
|
||||
if (fTemplateDialogField != null) {
|
||||
Template selected= getSelectedTemplate();
|
||||
String name = selected != null ?
|
||||
selected.getName() :
|
||||
|
@ -258,6 +259,7 @@ public abstract class AbstractFileCreationWizardPage extends NewElementWizardPag
|
|||
fTemplateDialogField.setItems(names);
|
||||
fTemplateDialogField.selectItem(idx);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Configure the set of templates to select from.
|
||||
|
|
Loading…
Add table
Reference in a new issue