Skip to content

Commit

Permalink
fixed: if upnp client wasn't started, xbmc could crash in GetFriendly…
Browse files Browse the repository at this point in the history
…Name()

git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/Dharma@35602 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
  • Loading branch information
elupus committed Dec 8, 2010
1 parent 5044f66 commit 9f72d1b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xbmc/FileSystem/UPnPDirectory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ CUPnPDirectory::GetFriendlyName(const char* url)
NPT_String uuid = path.SubString(7, next_slash-7);
NPT_String object_id = path.SubString(next_slash+1, path.GetLength()-next_slash-2);

if (!CUPnP::GetInstance()->IsClientStarted())
return NULL;

// look for device
PLT_DeviceDataReference device;
if (NPT_FAILED(CUPnP::GetInstance()->m_MediaBrowser->FindServer(uuid, device)) || device.IsNull())
Expand Down

0 comments on commit 9f72d1b

Please sign in to comment.