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;