mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
avoid NPE
This commit is contained in:
+1
@@ -93,6 +93,7 @@ public abstract class JavaLineBreakpointTypeBase<P extends JavaBreakpointPropert
|
||||
}
|
||||
|
||||
final Document document = FileDocumentManager.getInstance().getDocument(file);
|
||||
if (document == null) return false;
|
||||
final Ref<Class<? extends JavaLineBreakpointTypeBase>> result = Ref.create();
|
||||
XDebuggerUtil.getInstance().iterateLine(project, document, line, new Processor<PsiElement>() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user