mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Javafx: Avoid NPE when displaying rename error (IDEA-154197)
This commit is contained in:
+1
-1
@@ -66,7 +66,7 @@ public class JavaFxPropertyRenameHandler implements RenameHandler {
|
||||
if (reference == null) return;
|
||||
if (reference instanceof JavaFxComponentIdReferenceProvider.JavaFxIdReferenceBase &&
|
||||
((JavaFxComponentIdReferenceProvider.JavaFxIdReferenceBase)reference).isBuiltIn()) {
|
||||
CommonRefactoringUtil.showErrorHint(project, editor, "Cannot rename built-in property", null, null);
|
||||
CommonRefactoringUtil.showErrorHint(project, editor, "Cannot rename built-in property", "Cannot rename", null);
|
||||
return;
|
||||
}
|
||||
if (reference instanceof JavaFxPropertyReference && reference.resolve() != null) {
|
||||
|
||||
Reference in New Issue
Block a user