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:
parent
85530ddf54
commit
04b1590767
@ -1777,7 +1777,7 @@ BRoster::_LaunchApp(const char *mimeType, const entry_ref *ref,
|
||||
|
||||
// pre-register the app (but ignore scipts)
|
||||
app_info appInfo;
|
||||
bool isScript = wasDocument && *docRef == appRef;
|
||||
bool isScript = wasDocument && docRef != NULL && *docRef == appRef;
|
||||
bool alreadyRunning = false;
|
||||
uint32 appToken = 0;
|
||||
team_id team = -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user