SAMZA-1288: Add null check for sink OutputStream
authorXinyu Liu <xiliu@xiliu-ld.linkedin.biz>
Fri, 12 May 2017 16:49:04 +0000 (09:49 -0700)
committerXinyu Liu <xiliu@xiliu-ld.linkedin.biz>
Fri, 12 May 2017 16:49:04 +0000 (09:49 -0700)
commitb31c0dc6efc43ea6c80c872885283804d7f2188a
tree6ec134a30b222fc6a2443e85e1518527324b5dda
parent92b67b7a33d8246d96141cd7faa7f5f5e16b2194
SAMZA-1288: Add null check for sink OutputStream

The logic to generate json for Sink operator does not check whether the output stream is null. This causes null pointer exception.

Author: Xinyu Liu <xiliu@xiliu-ld.linkedin.biz>

Reviewers: Jake Maes <jmakes@apached.org>

Closes #188 from xinyuiscool/SAMZA-1288
samza-core/src/main/java/org/apache/samza/operators/util/OperatorJsonUtils.java
samza-core/src/test/java/org/apache/samza/execution/TestJobGraphJsonGenerator.java