Skip to content

Commit 35bb7d6

Browse files
authored
Merge pull request #49 from common-workflow-language/hotfix-null-blog
Fix for Github blog URL not being set causing NullPointerException
2 parents 4cd3d72 + 6c77b0f commit 35bb7d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/commonwl/viewer/domain/ROBundle.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public ROBundle(GitHubService githubService, GithubDetails githubInfo,
8484
// This tool supports putting your ORCID in the blog field of github as a URL
8585
// eg http://orcid.org/0000-0000-0000-0000
8686
String authorBlog = authorDetails.getBlog();
87-
if (authorBlog.startsWith("http://orcid.org/")) {
87+
if (authorBlog != null && authorBlog.startsWith("http://orcid.org/")) {
8888
author.setOrcid(new URI(authorBlog));
8989
}
9090

0 commit comments

Comments
 (0)