Fix possible null pointer dereference in triggerSearch()

This commit is contained in:
Adam Baker 2016-01-03 13:40:15 +00:00
parent 97551357ec
commit c7f481d5ba

View file

@ -431,7 +431,8 @@ public class ServerFragment extends ListFragment implements OnBackPressedListene
public void triggerSearch()
{
mUpnpService.getControlPoint().search();
if (mUpnpService != null)
mUpnpService.getControlPoint().search();
}
}