potential null pointer fix
@@ -153,6 +153,10 @@ public class GitHubToJiraSteps {
JSONArray hooks = getJSONArray(REPO_HOOKS_BASE_URL);
+ if (hooks == null) {
+ fail("could not create webhook configuration");
+ }
+
if (!hooks.isEmpty()) {
fail("repository alredy has hooks configured");
}
