Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.1.2
-
None
Description
Chained elvis is broken in CompileStatic mode. Here's an example that reproduces the problem:
@groovy.transform.CompileStatic def elvisNPE() { Map<String, Map<String,Integer>> m=[:] // this is ok println m?.a // throws NPE println m?.a?.b } elvisNPE()