[Tools] testbot/WineSendLog: Don't try to add a MessageId if there is no Patch object.
Francois Gouget <[email protected]> Mon, 20 Nov 2017 19:00:29 +0100 (CET)
| Newsgroups | gmane.comp.emulators.wine.patches |
|---|---|
| Message-ID | <E1eGqMv-0002L1-3X@amboise> |
Signed-off-by: Francois Gouget <[email protected]> --- testbot/bin/WineSendLog.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testbot/bin/WineSendLog.pl b/testbot/bin/WineSendLog.pl index 1bb37f49..eadfe77c 100755 --- a/testbot/bin/WineSendLog.pl +++ b/testbot/bin/WineSendLog.pl @@ -189,7 +189,7 @@ sub SendLog($) $Subject .= ": " . $Description; } print SENDMAIL "Subject: $Subject\n"; - if ($Job->Patch->MessageId) + if ($Job->Patch and $Job->Patch->MessageId) { print SENDMAIL "In-Reply-To: ", $Job->Patch->MessageId, "\n"; print SENDMAIL "References: ", $Job->Patch->MessageId, "\n"; -- 2.14.2