IBM / dbb-zappbuild

zAppBuild is a generic build solution for building z/OS applications using Apache Groovy build scripts and IBM Dependency Based Build (DBB) APIs.
Apache License 2.0
40 stars 140 forks source link

ZUnitConfig.groovy language script fails when there is no PLAYBACK file reference #309

Closed dennis-behm closed 1 year ago

dennis-behm commented 1 year ago

Both in both streams, the ZUnitConfig.groovy script is failing with a NPE, when no Playbackfile reference exits.

java.lang.NullPointerException: Cannot invoke method getAt() on null object
    at ZunitConfig$_run_closure1.doCall(ZunitConfig.groovy:66)
    at ZunitConfig.run(ZunitConfig.groovy:31)
    at ZunitConfig$run.callCurrent(Unknown Source)
    at com.ibm.dbb.groovy.ScriptLoader._run(ScriptLoader.groovy:124)
    at com.ibm.dbb.groovy.ScriptLoader$_run$0.call(Unknown Source)
    at com.ibm.dbb.groovy.ScriptLoader.runScript(ScriptLoader.groovy:81)
    at build$_run_closure1.doCall(build.groovy:61)
    at build.run(build.groovy:53)

It misses to return a false value along the null object.

dennis-behm commented 1 year ago

resolved via #310