From a940e6a32d9ac1234795bef840a4847d02325e47 Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 6 Apr 2015 10:08:33 -0700 Subject: [PATCH] Fix issue with transcripts that do not have associated rules Some effects are synthetic and do not directly result from rules. Auditors: btrahan --- .../herald/storage/transcript/HeraldApplyTranscript.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/applications/herald/storage/transcript/HeraldApplyTranscript.php b/src/applications/herald/storage/transcript/HeraldApplyTranscript.php index 10e6c3bc0d..dc0a62e3fc 100644 --- a/src/applications/herald/storage/transcript/HeraldApplyTranscript.php +++ b/src/applications/herald/storage/transcript/HeraldApplyTranscript.php @@ -16,7 +16,9 @@ final class HeraldApplyTranscript extends Phobject { $this->setAction($effect->getAction()); $this->setTarget($effect->getTarget()); - $this->setRuleID($effect->getRule()->getID()); + if ($effect->getRule()) { + $this->setRuleID($effect->getRule()->getID()); + } $this->setReason($effect->getReason()); $this->setApplied($applied); $this->setAppliedReason($reason);