mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 14:15:23 +02:00
Bug 333839 - NPE opening Rename refactoring dialog
This commit is contained in:
parent
ef7a5f4f0b
commit
432fafe8b9
1 changed files with 6 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2004, 2010 Wind River Systems, Inc. and others.
|
||||
* Copyright (c) 2004, 2011 Wind River Systems, Inc. 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
|
||||
|
@ -42,6 +42,8 @@ import org.eclipse.cdt.core.index.IIndex;
|
|||
import org.eclipse.cdt.core.model.CoreModel;
|
||||
import org.eclipse.cdt.core.model.ICProject;
|
||||
|
||||
import org.eclipse.cdt.internal.ui.refactoring.RefactoringSaveHelper;
|
||||
|
||||
/**
|
||||
* This is the processor used for the rename. It decides which of the delegates to
|
||||
* use and forwards further calls to the delegate.
|
||||
|
@ -332,6 +334,9 @@ public class CRenameProcessor extends RenameProcessor {
|
|||
* @return a save mode from {@link org.eclipse.cdt.internal.ui.refactoring.RefactoringSaveHelper}
|
||||
*/
|
||||
public int getSaveMode() {
|
||||
if (fDelegate == null) {
|
||||
return RefactoringSaveHelper.SAVE_NOTHING;
|
||||
}
|
||||
return fDelegate.getSaveMode();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue