Skip to content

Commit

Permalink
Merge pull request #4670 from troizet/fix_npe_php_visibility_autocomp…
Browse files Browse the repository at this point in the history
…lete

Fixed a NPE from issue #4629
  • Loading branch information
mbien authored Sep 22, 2022
2 parents c564ee6 + b332edd commit 28cffca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ private static boolean shouldOpenCompletionAfter(TextRegionManagerEvent evt) {
return false;
}
TextSync last = removed.get(removed.size()-1).activeTextSync();
return last.isCaretMarker() && last.isCompletionInvoke();
return last != null && last.isCaretMarker() && last.isCompletionInvoke();
}

void release() {
Expand Down

0 comments on commit 28cffca

Please sign in to comment.