Fix NPE in suspension point in monitor call checker
#KT-27484 Fixed
This commit is contained in:
+2
-1
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user