diff --git a/src/org/kde/kdeconnect/Backends/LanBackend/LanLinkProvider.java b/src/org/kde/kdeconnect/Backends/LanBackend/LanLinkProvider.java index c96f1dc0..198ceec7 100644 --- a/src/org/kde/kdeconnect/Backends/LanBackend/LanLinkProvider.java +++ b/src/org/kde/kdeconnect/Backends/LanBackend/LanLinkProvider.java @@ -482,8 +482,12 @@ public class LanLinkProvider extends BaseLinkProvider { public void onStop() { //Log.i("KDE/LanLinkProvider", "onStop"); try { - workerGroup.shutdownGracefully(); - bossGroup.shutdownGracefully(); + if (workerGroup != null) { + workerGroup.shutdownGracefully(); + } + if (bossGroup != null) { + bossGroup.shutdownGracefully(); + } udpGroup.shutdownGracefully(); clientGroup.shutdownGracefully(); }catch (Exception e){