Skip to content

Commit ecd647d

Browse files
bactgoneall
authored andcommitted
Check for empty string
Signed-off-by: Arthit Suriyawongkul <[email protected]>
1 parent 1811cf4 commit ecd647d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/spdx/utility/compare/LicenseCompareHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public static String licenseUriToLicenseId(String objectUri) {
9494
* @return string without comment characters
9595
*/
9696
public static String removeCommentChars(String s) {
97-
if (s == null) {
97+
if (s == null || s.isEmpty()) {
9898
return "";
9999
}
100100
StringBuilder sb = new StringBuilder();

0 commit comments

Comments
 (0)