mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-09 01:56:03 +00:00
[FIX JENKINS-50748] Handle null arg to jsStringEscape
This commit is contained in:
1 parent
e3d84a386d
commit
7c23884c59
1 file changed
+1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user