mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-21608 - NPE: FormReferenceProvider.processReferences
This commit is contained in:
@@ -141,8 +141,11 @@ public class FormReferenceProvider extends PsiReferenceProvider {
|
||||
final XmlAttribute classToBind = rootTag.getAttribute("bind-to-class", null);
|
||||
if (classToBind != null) {
|
||||
// reference to class
|
||||
final String className = classToBind.getValue().replace('$','.');
|
||||
final XmlAttributeValue valueElement = classToBind.getValueElement();
|
||||
if (valueElement == null) {
|
||||
return;
|
||||
}
|
||||
final String className = valueElement.getValue().replace('$','.');
|
||||
final PsiReference[] referencesByString = new JavaClassReferenceProvider(project).getReferencesByString(className, file, valueElement.getTextRange().getStartOffset() + 1);
|
||||
if(referencesByString.length < 1){
|
||||
// There are no references there
|
||||
|
||||
Reference in New Issue
Block a user