groovy

NullPointerException oddity related to variable scope