Skip to content

Commit

Permalink
[FLINK-6899] [state] Create correctly sized state array in NestedMaps…
Browse files Browse the repository at this point in the history
…StateTable

This closes apache#4107.
  • Loading branch information
tillrohrmann committed Jun 13, 2017
1 parent 23c82e3 commit 7351ec3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public NestedMapsStateTable(InternalKeyContext<K> keyContext, RegisteredKeyedBac
this.keyGroupOffset = keyContext.getKeyGroupRange().getStartKeyGroup();

@SuppressWarnings("unchecked")
Map<N, Map<K, S>>[] state = (Map<N, Map<K, S>>[]) new Map[keyContext.getNumberOfKeyGroups()];
Map<N, Map<K, S>>[] state = (Map<N, Map<K, S>>[]) new Map[keyContext.getKeyGroupRange().getNumberOfKeyGroups()];
this.state = state;
}

Expand Down

0 comments on commit 7351ec3

Please sign in to comment.