Skip to content

Commit

Permalink
Empty string causes json error
Browse files Browse the repository at this point in the history
  • Loading branch information
ppone committed Jun 29, 2017
1 parent 84cc3e1 commit 2e9cb5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repositories {
jcenter()
}

version = '1.1.1'
version = '1.1.2'

// coveralls plugin depends on xml format report

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/invoiced/entity/Customer.java
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public Invoice invoice() throws EntityException {

try {

String response = this.getConnection().post(url, null, "");
String response = this.getConnection().post(url, null, "{}");

invoice = Util.getMapper().readValue(response, Invoice.class);
invoice.setConnection(this.getConnection());
Expand Down

0 comments on commit 2e9cb5f

Please sign in to comment.