Skip to content

Commit

Permalink
comment check language is null (openpilot-hub#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangtianyu authored Jul 24, 2024
1 parent b794f4b commit a0b320e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/zhongan/devpilot/util/CommentUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static boolean isSingleLineComment(String text, Language language) {
}

public static boolean containsComment(String text, Language language) {
if (text == null) return false;
if (text == null || language == null) return false;
return isMultiLineComment(text, language) || isSingleLineComment(text, language);
}

Expand Down

0 comments on commit a0b320e

Please sign in to comment.