Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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 5e8cd50
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main/java/hudson/Functions.java
Expand Up @@ -1379,6 +1379,7 @@ public static <T> Collection<T> emptyList() {
}

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

0 comments on commit 5e8cd50

Please sign in to comment.