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 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 7c23884

Please sign in to comment.