From 3337790f348976f31db7f909fe591aad0a1eae27 Mon Sep 17 00:00:00 2001 From: crschnick Date: Thu, 26 Sep 2024 10:57:58 +0000 Subject: [PATCH] Fix NPE --- app/src/main/java/io/xpipe/app/core/mode/OperationMode.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/io/xpipe/app/core/mode/OperationMode.java b/app/src/main/java/io/xpipe/app/core/mode/OperationMode.java index 970f36d43..f6b9d5019 100644 --- a/app/src/main/java/io/xpipe/app/core/mode/OperationMode.java +++ b/app/src/main/java/io/xpipe/app/core/mode/OperationMode.java @@ -223,6 +223,8 @@ public abstract class OperationMode { CURRENT.finalTeardown(); } CURRENT = null; + // Restart local shell + LocalShell.init(); r.run(); } catch (Throwable ex) { ErrorEvent.fromThrowable(ex).handle();