Skip to content

Commit fdc4d8a

Browse files
committed
Return null on no response
1 parent 5043a1c commit fdc4d8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iPublications/Profit/GuzzleAdapterClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,6 @@ public function GetResponseBody() : string
130130

131131
public function GetResponseHttpCode()
132132
{
133-
return $this->response->getStatusCode();
133+
return $this->response ? $this->response->getStatusCode() : null;
134134
}
135135
}

0 commit comments

Comments
 (0)