Skip to content

Commit

Permalink
[FLINK-1193][java-api][scala-api] Fix copy method for ObjectArraySeri…
Browse files Browse the repository at this point in the history
…alizer
  • Loading branch information
StephanEwen committed Feb 3, 2015
1 parent 57b3e9f commit 9906cba
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ public C[] copy(C[] from) {
C[] copy = create(from.length);

for (int i = 0; i < copy.length; i++) {
if (from[i] != null) {
copy[i] = this.componentSerializer.copy(from[i], this.componentSerializer.createInstance());
C val = from[i];
if (val != null) {
copy[i] = this.componentSerializer.copy(val);
}
}

Expand Down

0 comments on commit 9906cba

Please sign in to comment.