Fix NPE in LookupCancelService$Reminiscence
#EA-228125 Fixed
This commit is contained in:
committed by
Vladimir Dolzhenko
parent
061bc9af07
commit
3d4c5b0091
+1
-1
@@ -35,7 +35,7 @@ class LookupCancelService {
|
||||
// forget about auto-popup cancellation when the caret is moved to the start or before it
|
||||
private var editorListener: CaretListener? = object : CaretListener {
|
||||
override fun caretPositionChanged(e: CaretEvent) {
|
||||
if (!marker!!.isValid || editor.logicalPositionToOffset(e.newPosition) <= offset) {
|
||||
if (marker != null && (!marker!!.isValid || editor.logicalPositionToOffset(e.newPosition) <= offset)) {
|
||||
dispose()
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@ class LookupCancelWatcher(val project: Project) : ProjectComponent {
|
||||
// forget about auto-popup cancellation when the caret is moved to the start or before it
|
||||
private var editorListener: CaretListener? = object : CaretListener {
|
||||
override fun caretPositionChanged(e: CaretEvent) {
|
||||
if (!marker!!.isValid || editor.logicalPositionToOffset(e.newPosition) <= offset) {
|
||||
if (marker != null && (!marker!!.isValid || editor.logicalPositionToOffset(e.newPosition) <= offset)) {
|
||||
dispose()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user