From b23063dd3f2bc1bdf5a1de4d6c6fb0497fef2bb5 Mon Sep 17 00:00:00 2001 From: Vladimir Mutafov Date: Fri, 4 Mar 2022 12:20:18 +0200 Subject: [PATCH] fix: handle empty path when graaljs builds stacktraces --- .../graalvm/processor/truffle/RegistryTruffleFileSystem.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/engines/engine-javascript-graalvm/src/main/java/org/eclipse/dirigible/engine/js/graalvm/processor/truffle/RegistryTruffleFileSystem.java b/modules/engines/engine-javascript-graalvm/src/main/java/org/eclipse/dirigible/engine/js/graalvm/processor/truffle/RegistryTruffleFileSystem.java index 1ee5b77a833..ead6cc9a55f 100644 --- a/modules/engines/engine-javascript-graalvm/src/main/java/org/eclipse/dirigible/engine/js/graalvm/processor/truffle/RegistryTruffleFileSystem.java +++ b/modules/engines/engine-javascript-graalvm/src/main/java/org/eclipse/dirigible/engine/js/graalvm/processor/truffle/RegistryTruffleFileSystem.java @@ -44,6 +44,9 @@ public Path parsePath(URI uri) { @Override public Path parsePath(String path) { + if ("".equals(path)) { + return Path.of(""); + } return standardHandler.handlePossibleRepositoryPath(path); }