aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/abstract/MCMessageHeader.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/abstract/MCMessageHeader.cc b/src/core/abstract/MCMessageHeader.cc
index 43620f2a..61c126ff 100644
--- a/src/core/abstract/MCMessageHeader.cc
+++ b/src/core/abstract/MCMessageHeader.cc
@@ -294,11 +294,15 @@ String * MessageHeader::userAgent()
String * MessageHeader::extractedSubject()
{
+ if (subject() == NULL)
+ return NULL;
return subject()->extractedSubject();
}
String * MessageHeader::partialExtractedSubject()
{
+ if (subject() == NULL)
+ return NULL;
return subject()->extractedSubjectAndKeepBracket(true);
}