Skip to content

Commit

Permalink
add null check to method
Browse files Browse the repository at this point in the history
  • Loading branch information
Srltas committed Feb 29, 2024
1 parent e850579 commit 8da78d2
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,10 @@ public static boolean validateDateString(String datestring, String datepattern)
* @return boolean true: CUBRID support; false: CUBRID not support
*/
public static boolean validateDateTimeFunction(String dateTime) {
if (dateTime == null) {
return false;
}

String upperDateTime = dateTime.toUpperCase(Locale.US);

for (String function : dateTimeFunctions) {
Expand Down

0 comments on commit 8da78d2

Please sign in to comment.