Don't convert to PropertyDescriptor without check (EA-92870)
This commit is contained in:
@@ -195,8 +195,8 @@ class KotlinFieldBreakpoint(
|
|||||||
descriptor = bindingContext.get(BindingContext.VALUE_PARAMETER_AS_PROPERTY, descriptor)
|
descriptor = bindingContext.get(BindingContext.VALUE_PARAMETER_AS_PROPERTY, descriptor)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (descriptor != null) {
|
if (descriptor is PropertyDescriptor) {
|
||||||
if (bindingContext.get(BindingContext.BACKING_FIELD_REQUIRED, descriptor as PropertyDescriptor)!!) {
|
if (bindingContext.get(BindingContext.BACKING_FIELD_REQUIRED, descriptor)!!) {
|
||||||
BreakpointType.FIELD
|
BreakpointType.FIELD
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user