Skip to content

Commit

Permalink
#2929 Handle null range in a safe way
Browse files Browse the repository at this point in the history
Not quite sure how can this be, but technically range can be null.

Fixes #2929
  • Loading branch information
hurricup committed Oct 26, 2024
1 parent 5b2faa1 commit c0e301e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private void registerReachableRange(@NotNull Instruction instruction) {
return;
}
var elementRange = element.getTextRange();
if (elementRange.isEmpty()) {
if (elementRange == null || elementRange.isEmpty()) {
return;
}
var rangesIterator = reachableRanges.iterator();
Expand Down

0 comments on commit c0e301e

Please sign in to comment.