Skip to content

Commit

Permalink
Merge pull request #130 from ivan1986/fix-null
Browse files Browse the repository at this point in the history
fix Call to a member function isEmpty() on null
  • Loading branch information
lesstif authored Feb 15, 2018
2 parents 9d935d0 + c98dcc1 commit 0a0c674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Issue/IssueField.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public function jsonSerialize()

// if assignee property has empty value then remove it.
// @see https://github.com/lesstif/php-jira-rest-client/issues/126
if ($this->assignee->isEmpty()) {
if (empty($this->assignee) || $this->assignee->isEmpty()) {
unset($vars['assignee']);
}

Expand Down

0 comments on commit 0a0c674

Please sign in to comment.