diff --git a/src/main/java/com/github/nutomic/controldlna/gui/ServerFragment.java b/src/main/java/com/github/nutomic/controldlna/gui/ServerFragment.java index 091e31b..0c969d0 100644 --- a/src/main/java/com/github/nutomic/controldlna/gui/ServerFragment.java +++ b/src/main/java/com/github/nutomic/controldlna/gui/ServerFragment.java @@ -431,7 +431,8 @@ public class ServerFragment extends ListFragment implements OnBackPressedListene public void triggerSearch() { - mUpnpService.getControlPoint().search(); + if (mUpnpService != null) + mUpnpService.getControlPoint().search(); } }