IR: Fix error rendering on IR symbol binding conflict
it could be called with uninitialized `owner` parameter, leading to the NPE on render
This commit is contained in:
committed by
TeamCityServer
parent
dee0487185
commit
3b2bb2ba9f
@@ -61,7 +61,7 @@ abstract class IrBindableSymbolBase<out D : DeclarationDescriptor, B : IrSymbolO
|
|||||||
if (_owner == null) {
|
if (_owner == null) {
|
||||||
_owner = owner
|
_owner = owner
|
||||||
} else {
|
} else {
|
||||||
throw IllegalStateException("${javaClass.simpleName} is already bound: ${owner.render()}")
|
throw IllegalStateException("${javaClass.simpleName} is already bound: ${_owner?.render()}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ abstract class IrBindablePublicSymbolBase<out D : DeclarationDescriptor, B : IrS
|
|||||||
if (_owner == null) {
|
if (_owner == null) {
|
||||||
_owner = owner
|
_owner = owner
|
||||||
} else {
|
} else {
|
||||||
throw IllegalStateException("${javaClass.simpleName} for $signature is already bound: ${owner.render()}")
|
throw IllegalStateException("${javaClass.simpleName} for $signature is already bound: ${_owner?.render()}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user