[FIX JENKINS-50748] Handle null arg to jsStringEscape

This commit is contained in:
Daniel Beck committed 2018-04-12 09:45:30 +02:00
1 parent e3d84a386d
commit 7c23884c59
1 file changed
+1
+1
View File
@@ -1379,6 +1379,7 @@ public class Functions {
}
public static String jsStringEscape(String s) {
if (s == null) return null;
StringBuilder buf = new StringBuilder();
for( int i=0; i<s.length(); i++ ) {
char ch = s.charAt(i);