getHandler() fixed

This commit is contained in:
Dmitry Avdeev
2010-09-10 16:39:00 +04:00
parent 47489a7f2c
commit 155bc406e6
@@ -74,7 +74,10 @@ public abstract class BasePlatformRefactoringAction extends BaseRefactoringActio
if (editor != null && file != null) {
element = getElementAtCaret(editor, file);
if (element != null) {
return getHandler(element.getLanguage(), element);
RefactoringActionHandler handler = getHandler(element.getLanguage(), element);
if (handler != null) {
return handler;
}
}
}