Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
b019a639
Commit
b019a639
authored
9 years ago
by
Egor.Ushakov
Browse files
Options
Download
Email Patches
Plain Diff
avoid NPE
parent
befd6377
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/debugger/impl/src/com/intellij/debugger/impl/DebuggerContextUtil.java
+1
-1
...l/src/com/intellij/debugger/impl/DebuggerContextUtil.java
with
1 addition
and
1 deletion
+1
-1
java/debugger/impl/src/com/intellij/debugger/impl/DebuggerContextUtil.java
+
1
-
1
View file @
b019a639
...
...
@@ -95,7 +95,7 @@ public class DebuggerContextUtil {
Editor
editor
=
((
FileEditorManagerImpl
)
FileEditorManager
.
getInstance
(
file
.
getProject
())).
getSelectedTextEditor
(
true
);
//final Editor editor = fileEditor instanceof TextEditorImpl ? ((TextEditorImpl)fileEditor).getEditor() : null;
if
(
editor
!=
null
&&
position
!=
null
&&
file
.
getVirtualFile
().
equals
(
position
.
get
File
()))
{
if
(
editor
!=
null
&&
position
!=
null
&&
position
.
getFile
().
equals
(
file
.
getOriginalFile
().
getVirtual
File
()))
{
PsiMethod
method
=
PsiTreeUtil
.
getParentOfType
(
PositionUtil
.
getContextElement
(
context
),
PsiMethod
.
class
,
false
);
final
Collection
<
TextRange
>
ranges
=
IdentifierHighlighterPass
.
getUsages
(
psi
,
method
!=
null
?
method
:
file
,
false
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment