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 1 changed file with 1 addition and 0 deletions.
@@ -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);

0 comments on commit 5e8cd50

Please sign in to comment.