diff --git a/ruffyscripter/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java b/ruffyscripter/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java index d3b605d489..64f3daf5fa 100644 --- a/ruffyscripter/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java +++ b/ruffyscripter/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java @@ -189,6 +189,9 @@ public class RuffyScripter implements RuffyCommands { @Override public synchronized void disconnect() { + if (ruffyService == null) { + return; + } try { ruffyService.doRTDisconnect(); } catch (RemoteException e) {