Skip to content

Commit 6c77b0f

Browse files
author
Mark Robinson
committed
Fix for Github blog URL not being set causing NullPointerException in RO generation
1 parent 4cd3d72 commit 6c77b0f

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)