aperepel / nifi-api-deploy

Demonstrates NiFi template deployment and configuration via a REST API
Apache License 2.0
68 stars 37 forks source link

Better handling of a missing NiFi URL in the deployment spec #19

Closed aperepel closed 8 years ago

aperepel commented 8 years ago

For a deployment with a missing URL like below:

nifi:
  templateUri: github19.xml
  templateName: github19
processGroups:
  template-auto:
    processors:
...

the error is not very user-friendly.

groovy NiFiDeploy.groovy -f nifi-deploy.yml
Caught: java.lang.NullPointerException: Cannot invoke method endsWith() on null object
java.lang.NullPointerException: Cannot invoke method endsWith() on null object
    at NiFiDeploy.run(NiFiDeploy.groovy:541)