Skip to content

Commit

Permalink
Fix #278: Receiving leader entity causes exception
Browse files Browse the repository at this point in the history
(cherry picked from commit 264265326fbc5dd9b66fc30d21196d8af1c5e391)

(cherry picked from commit 429ff26)
  • Loading branch information
eberhardtj authored and cboehme committed Dec 19, 2018
1 parent ffca0b8 commit 07a88d1
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -156,7 +156,9 @@ private void startField(final String name) {

@Override
public void endEntity() {
builder.endDataField();
if (state.equals(State.IN_FIELD_ENTITY)) {
builder.endDataField();
}
state = State.IN_RECORD;
}

Expand Down

0 comments on commit 07a88d1

Please sign in to comment.