Skip to content

Commit

Permalink
Check if labelMonetaryAccount is not null instead of Pointer is null. (
Browse files Browse the repository at this point in the history
  • Loading branch information
OGKevin committed Jan 8, 2018
1 parent c9a2647 commit 852c755
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class MonetaryAccountReferenceTypeAdapter extends TypeAdapter<MonetaryAcc
public void write(JsonWriter out, MonetaryAccountReference value) throws IOException {
if (value == null || value.isAllFieldNull()) {
out.nullValue();
} else if (value.getPointer() == null) {
} else if (value.getLabelMonetaryAccount() != null) {
LabelMonetaryAccount labelMonetaryAccount = value.getLabelMonetaryAccount();

BunqGsonBuilder.buildDefault().create().toJson(labelMonetaryAccount, LabelMonetaryAccount.class, out);
Expand Down

0 comments on commit 852c755

Please sign in to comment.