1
0
Fork 0
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:
Marc-Andre Laperle 2011-10-17 21:49:24 -04:00
parent ef7a5f4f0b
commit 432fafe8b9

View file

@ -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();
}