diff options
| author | vrubezhny | 2013-10-21 13:03:04 +0000 |
|---|---|---|
| committer | vrubezhny | 2013-12-19 20:59:46 +0000 |
| commit | 9f0cf4a3bf11c3e3304cb11b0dc069bcb202d0d7 (patch) | |
| tree | 61cc2444414d5d5f93311fb5a3633bc147ef5134 | |
| parent | 90ea7fb7d70af115cbf623a6fe8c3ef5523c14ff (diff) | |
| download | webtools.jsdt.core-9f0cf4a3bf11c3e3304cb11b0dc069bcb202d0d7.tar.gz webtools.jsdt.core-9f0cf4a3bf11c3e3304cb11b0dc069bcb202d0d7.tar.xz webtools.jsdt.core-9f0cf4a3bf11c3e3304cb11b0dc069bcb202d0d7.zip | |
Bug 351713 - [refactoring] Change Function Signature broken. Cannot use at all.
NPE is fixed
Signed-off-by: vrubezhny <vrubezhny@exadel.com>
| -rw-r--r-- | bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/corext/refactoring/structure/ChangeSignatureRefactoring.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/corext/refactoring/structure/ChangeSignatureRefactoring.java b/bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/corext/refactoring/structure/ChangeSignatureRefactoring.java index c63089d0..c556ba46 100644 --- a/bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/corext/refactoring/structure/ChangeSignatureRefactoring.java +++ b/bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/corext/refactoring/structure/ChangeSignatureRefactoring.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2009 IBM Corporation and others. + * Copyright (c) 2000, 2013 IBM Corporation 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 @@ -485,7 +485,7 @@ public class ChangeSignatureRefactoring extends ScriptableRefactoring implements result.addFatalError(msg); return; } - if (fMethodName.equals(fMethod.getDeclaringType().getElementName())) { + if (fMethod.getDeclaringType() != null && fMethodName.equals(fMethod.getDeclaringType().getElementName())) { String msg= RefactoringCoreMessages.ChangeSignatureRefactoring_constructor_name; result.addWarning(msg); } |
