Skip to content

Commit

Permalink
Return null on no response
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlankhorst committed Mar 15, 2019
1 parent 5043a1c commit fdc4d8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iPublications/Profit/GuzzleAdapterClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,6 @@ public function GetResponseBody() : string

public function GetResponseHttpCode()
{
return $this->response->getStatusCode();
return $this->response ? $this->response->getStatusCode() : null;
}
}

0 comments on commit fdc4d8a

Please sign in to comment.