Skip to content

Commit 9cff426

Browse files
author
James Simone
committed
Added support for passing null as a string
1 parent f5ed37c commit 9cff426

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/classes/SOQLUtils.cls

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ public without sharing class SOQLUtils {
3131
}
3232

3333
public static String wrapInSingleQuotes(String input) {
34+
if(input.toLowerCase() == 'null') return input;
35+
3436
if(input.left(1) != '\'') input = '\'' + input;
3537
if(input.right(1) != '\'') input = input + '\'';
3638
return input;

0 commit comments

Comments
 (0)