[JENKINS-50748] Handle null arg to jsStringEscape

(cherry picked from commit 7c23884c59)
This commit is contained in:
Daniel Beck authored and Oliver Gondža committed 2018-04-12 12:06:57 +02:00
1 parent f11b585a28
commit 5e8cd50dcb
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);