Skip to content
Permalink
Browse files

[JENKINS-50748] Handle null arg to jsStringEscape

(cherry picked from commit 7c23884)
  • Loading branch information
daniel-beck authored and olivergondza committed Apr 12, 2018
1 parent f11b585 commit 5e8cd50dcbc22d5dfd1e7f907bd658048d6769be
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 5e8cd50

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