Skip to content

Commit 01dbcda

Browse files
committed
mitigate NPE if host is null
1 parent 63eea75 commit 01dbcda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/sap/oss/phosphor/fosstars/data/github/NvdEntryMatcher.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ private static boolean parseNodes(List<Node> nodes, boolean referenceMatch,
344344
* @return True if the host name matches with the project, false otherwise.
345345
*/
346346
private static boolean checkUrlHost(String host, GitHubProject project) {
347-
return host.equals(project.scm().getHost());
347+
return project.scm().getHost().equals(host);
348348
}
349349

350350
/**

0 commit comments

Comments
 (0)