thanneeruvenu / spock

Automatically exported from code.google.com/p/spock
0 stars 0 forks source link

NPE in method condition with null-safe operator #253

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The following code fails with an NPE instead of a ConditionNotSatisfiedError:

def a = null

expect:
a?.foo()

Original issue reported on code.google.com by pnied...@gmail.com on 20 May 2012 at 11:41

GoogleCodeExporter commented 8 years ago

Original comment by pnied...@gmail.com on 20 May 2012 at 12:39