We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cc198e commit 1674f95Copy full SHA for 1674f95
playwright/src/main/java/com/microsoft/playwright/impl/StackTraceCollector.java
@@ -69,7 +69,13 @@ private String sourceFile(StackTraceElement frame) {
69
if (file == null) {
70
return "";
71
}
72
- return resolveSourcePath(Paths.get(pkg).resolve(file));
+ try {
73
+ // The file name can contain an arbitrary string which may cause Path implementation
74
+ // to throw. See https://github.com/microsoft/playwright-java/issues/1115
75
+ return resolveSourcePath(Paths.get(pkg).resolve(file));
76
+ } catch (RuntimeException e) {
77
+ return "";
78
+ }
79
80
81
private String resolveSourcePath(Path relativePath) {
0 commit comments