From 04b1590767a85ff2d540db3f6bbbd1e960403ad0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 16 May 2006 13:28:56 +0000 Subject: [PATCH] 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 --- src/kits/app/Roster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/app/Roster.cpp b/src/kits/app/Roster.cpp index acb6375748..38e2fc7e99 100644 --- a/src/kits/app/Roster.cpp +++ b/src/kits/app/Roster.cpp @@ -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;