mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-15 13:02:19 +00:00
[JENKINS-50748] Handle null arg to jsStringEscape
(cherry picked from commit 7c23884c59)
This commit is contained in:
1 parent
f11b585a28
commit
5e8cd50dcb
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