NPE fixed inside three implementations of LexicalScope.printStructure
This commit is contained in:
committed by
Mikhail Glukhikh
parent
c24156ae84
commit
4f3e3610a0
@@ -48,7 +48,7 @@ public class LexicalChainedScope(
|
||||
|
||||
override fun printStructure(p: Printer) {
|
||||
p.println(javaClass.simpleName, ": ", debugName, "; for descriptor: ", ownerDescriptor.name,
|
||||
" with implicitReceiver: ", implicitReceiver?.value, " {")
|
||||
" with implicitReceiver: ", implicitReceiver?.value ?: "NONE", " {")
|
||||
p.pushIndent()
|
||||
|
||||
for (scope in scopeChain) {
|
||||
|
||||
@@ -56,7 +56,7 @@ public class LexicalScopeImpl @JvmOverloads constructor(
|
||||
|
||||
override fun printStructure(p: Printer) {
|
||||
p.println(javaClass.simpleName, ": ", debugName, "; for descriptor: ", ownerDescriptor.name,
|
||||
" with implicitReceiver: ", implicitReceiver?.value, " {")
|
||||
" with implicitReceiver: ", implicitReceiver?.value ?: "NONE", " {")
|
||||
p.pushIndent()
|
||||
|
||||
p.print("parent = ")
|
||||
|
||||
@@ -124,7 +124,7 @@ class LexicalWritableScope(
|
||||
|
||||
override fun printStructure(p: Printer) {
|
||||
p.println(javaClass.simpleName, ": ", debugName, "; for descriptor: ", ownerDescriptor.name,
|
||||
" with implicitReceiver: ", implicitReceiver?.value, " {")
|
||||
" with implicitReceiver: ", implicitReceiver?.value ?: "NONE", " {")
|
||||
p.pushIndent()
|
||||
|
||||
p.print("parent = ")
|
||||
|
||||
Reference in New Issue
Block a user