Skip to content

Commit

Permalink
Fixed fatal error in invalid issue
Browse files Browse the repository at this point in the history
  • Loading branch information
michalsvec committed Jul 14, 2014
1 parent 4069560 commit 97a7606
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/Svn/RevisionMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ public function findJiraIssue(\DixonsCz\Chuck\Jira\Wrapper $jira)

try {
$issue = $jira->getTicketInfo($this->ticketNumber);
$issue->attachRevisionMessage($this);

} catch (\DixonsCz\Jira\JiraException $e) {
$issue = null;
}

if($issue !== null) {
$issue->attachRevisionMessage($this);
}

return $issue;
}

Expand Down

0 comments on commit 97a7606

Please sign in to comment.