Skip to content

Commit

Permalink
Closes #899
Browse files Browse the repository at this point in the history
  • Loading branch information
dhalperi committed Aug 27, 2016
2 parents baf5e41 + ee71688 commit 676843e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ public <OutputT extends POutput, InputT extends PInput> OutputT apply(
return windowed;
} else if (Flatten.FlattenPCollectionList.class.equals(transform.getClass())
&& ((PCollectionList<?>) input).size() == 0) {
return (OutputT) Pipeline.applyTransform((PBegin) input, Create.of());
return (OutputT) Pipeline.applyTransform(input.getPipeline().begin(), Create.of());
} else if (overrides.containsKey(transform.getClass())) {
// It is the responsibility of whoever constructs overrides to ensure this is type safe.
@SuppressWarnings("unchecked")
Expand Down

0 comments on commit 676843e

Please sign in to comment.