Skip to content
Permalink
Browse files

[FIX JENKINS-50748] Handle null arg to jsStringEscape

  • Loading branch information
daniel-beck committed Apr 12, 2018
1 parent e3d84a3 commit 7c23884c5979c9bebb4bbb7bfa64726bd05c163b
Showing with 1 addition and 0 deletions.
  1. +1 −0 core/src/main/java/hudson/Functions.java
@@ -1379,6 +1379,7 @@ public static String dumpThreadInfo(ThreadInfo ti, ThreadGroupMap map) {
}

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);

0 comments on commit 7c23884

Please sign in to comment.
You can’t perform that action at this time.