From 4e401f8153cdf2cd4a42056735b4a320f3059713 Mon Sep 17 00:00:00 2001 From: Clemens Zeidler Date: Sat, 5 Mar 2011 00:18:25 +0000 Subject: [PATCH] Fix crash when opening a new mail. Thanks Jonas. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40812 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/mail/MailWindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/apps/mail/MailWindow.cpp b/src/apps/mail/MailWindow.cpp index 501cc0e051..4df23757c2 100644 --- a/src/apps/mail/MailWindow.cpp +++ b/src/apps/mail/MailWindow.cpp @@ -2787,6 +2787,8 @@ TMailWindow::SetTitleForMessage() status_t TMailWindow::OpenMessage(const entry_ref *ref, uint32 characterSetForDecoding) { + if (ref == NULL) + return B_ERROR; // // Set some references to the email file //