mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 06:21:16 +07:00
Fix NPE when Cucumber Java step fail but error message is null
This commit is contained in:
+3
@@ -38,6 +38,9 @@ public class CucumberJvmSMFormatterUtil {
|
||||
}
|
||||
|
||||
public static String escape(String source) {
|
||||
if (source == null) {
|
||||
return "";
|
||||
}
|
||||
return source.replace("|", "||").replace("\n", "|n").replace("\r", "|r").replace("'", "|'").replace("[", "|[").replace("]", "|]");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user