docRef can be NULL - this fixes the crash of the media server I introduced yesterday...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17478 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1777,7 +1777,7 @@ BRoster::_LaunchApp(const char *mimeType, const entry_ref *ref,
|
|||||||
|
|
||||||
// pre-register the app (but ignore scipts)
|
// pre-register the app (but ignore scipts)
|
||||||
app_info appInfo;
|
app_info appInfo;
|
||||||
bool isScript = wasDocument && *docRef == appRef;
|
bool isScript = wasDocument && docRef != NULL && *docRef == appRef;
|
||||||
bool alreadyRunning = false;
|
bool alreadyRunning = false;
|
||||||
uint32 appToken = 0;
|
uint32 appToken = 0;
|
||||||
team_id team = -1;
|
team_id team = -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user