Fixed #7137 by checking for Response before calling getBody() on it (#7138)

This commit is contained in:
Mads Føhns
2017-12-09 10:20:56 +01:00
committed by William Cheng
parent cfa5a55a28
commit 2af8868281

View File

@@ -131,7 +131,7 @@ use {{invokerPackage}}\ObjectSerializer;
"[{$e->getCode()}] {$e->getMessage()}",
$e->getCode(),
$e->getResponse() ? $e->getResponse()->getHeaders() : null,
$e->getResponse()->getBody()->getContents()
$e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
);
}