Fix possible null pointer dereference in triggerSearch()
This commit is contained in:
parent
97551357ec
commit
c7f481d5ba
1 changed files with 2 additions and 1 deletions
|
@ -431,7 +431,8 @@ public class ServerFragment extends ListFragment implements OnBackPressedListene
|
|||
|
||||
public void triggerSearch()
|
||||
{
|
||||
mUpnpService.getControlPoint().search();
|
||||
if (mUpnpService != null)
|
||||
mUpnpService.getControlPoint().search();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Reference in a new issue