提交 d7911c5a 编写于 作者: A Aljoscha Krettek

[FLINK-6294] Fix potential NPE in BucketingSink.close()

上级 d7c2c417
......@@ -414,8 +414,10 @@ public class BucketingSink<T>
@Override
public void close() throws Exception {
for (Map.Entry<String, BucketState<T>> entry : state.bucketStates.entrySet()) {
closeCurrentPartFile(entry.getValue());
if (state != null) {
for (Map.Entry<String, BucketState<T>> entry : state.bucketStates.entrySet()) {
closeCurrentPartFile(entry.getValue());
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册