Skip to content

Commit

Permalink
New update
Browse files Browse the repository at this point in the history
1. Fix null
  • Loading branch information
megoRU committed Jan 15, 2023
1 parent 6b0a7fb commit 3b5acde
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/org/megoru/impl/WgEasyAPIImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,10 @@ private <E> E execute(HttpRequestBase request, ResponseTransformer<E> responseTr
CloseableHttpResponse response = httpClient.execute(request);

HttpEntity entity = response.getEntity();
String body = EntityUtils.toString(entity);
String body = "{}";
if (entity != null) {
body = EntityUtils.toString(entity);
}

if (devMode) {
String status = String.format(
Expand Down

0 comments on commit 3b5acde

Please sign in to comment.