From c6efb9eec8d5935dba3d4fcf07661188b243f09d Mon Sep 17 00:00:00 2001 From: crschnick Date: Thu, 22 Jun 2023 19:18:47 +0000 Subject: [PATCH] Fix NPE [release] --- app/src/main/java/io/xpipe/app/browser/OpenFileSystemModel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/xpipe/app/browser/OpenFileSystemModel.java b/app/src/main/java/io/xpipe/app/browser/OpenFileSystemModel.java index aca08c36f..1bbc17c9f 100644 --- a/app/src/main/java/io/xpipe/app/browser/OpenFileSystemModel.java +++ b/app/src/main/java/io/xpipe/app/browser/OpenFileSystemModel.java @@ -158,7 +158,7 @@ public final class OpenFileSystemModel { TerminalHelper.open(adjustedPath, cmd); } }); - return Optional.of(currentPath.get()); + return Optional.ofNullable(currentPath.get()); } // Evaluate optional links