java.lang.NullPointerException: Cannot invoke method get() on null object

Published: 30/01/2018
java.lang.NullPointerException: Cannot invoke method get() on null object
Source: STACKOVERFLOW.COM

I have the next Groovy code which I try to run in Jenkins Pipeline: @Grab('io.github.http-builder-ng:http-builder-ng-core:1.0.3') import static groovyx.net.http.HttpBuilder.configure def astros = configure { request.uri = 'http://api.open-notify.org/astros.json' }.get() println "There are ${astros.number} astronauts in space right now." astros.people.each { p-> println " - ${p.name} (${p

Read more
Related news
Comment
FACEBOOK