null pointer fix
@@ -96,7 +96,9 @@ public class GitHubToJiraSteps {
Properties properties = getProperties();
String namespace = Optional.ofNullable(System.getenv("HOOK_NAMESPACE")).orElse(properties.getProperty("namespace"));
String repo = Optional.ofNullable(System.getenv("HOOK_REPO")).orElse(properties.getProperty("repo"));
- String filePath = properties.getProperty("fileCreatePath").replace("{fileCreatePath}", "src\\main\\java\\sample\\encode.frm");
+ String filePath = Optional.ofNullable(properties.getProperty("fileCreatePath"))
+ .orElse("{fileCreatePath}")
+ .replace("{fileCreatePath}", "src\\main\\java\\sample\\encode.frm");
hookTargetURL = Optional.ofNullable(System.getenv("HOOK_TARGET")).orElse(properties.getProperty("target"));
COMMIT_FILE_PATH = String.format("%s/%s/%s/contents/%s", gitHubProperties.getApiUrl(), namespace, repo,
filePath);
