Fix NPE in suspension point in monitor call checker

#KT-27484 Fixed
This commit is contained in:
Ilmir Usmanov
2018-10-10 16:22:12 +03:00
parent 36c73eedbf
commit c4d0b5493a
3 changed files with 20 additions and 1 deletions
@@ -42,7 +42,8 @@ class SuspensionPointInSynchronizedCallChecker : CallChecker {
if (parent !is KtValueArgumentList) {
child = parent
}
parent = parent.parent
// parent.parent can be null if we edit the file, see EA-2158254 and KT-27484
parent = parent.parent ?: return
}
}