Back to Intellij Community

SecondUnsafeCall

plugins/groovy/groovy-psi/resources/inspectionDescriptions/SecondUnsafeCall.html

2025.3-rc-2204 B
Original Source

Reports possible NullPointerException during chain methods or properties call.

Example:

domain?.getZone().getName()

After the quick-fix is applied:

domain?.getZone()?.getName()