mirror of https://github.com/apache/kafka.git
fix npe in KStreamImpl.to(..)
This commit is contained in:
parent
33d745e2dc
commit
74d396d131
|
|
@ -133,4 +133,11 @@ public class KStreamImplTest {
|
||||||
1, // process
|
1, // process
|
||||||
builder.build("X", null).processors().size());
|
builder.build("X", null).processors().size());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testToWithNullValueSerdeDoesntNPE() {
|
||||||
|
final KStreamBuilder builder = new KStreamBuilder();
|
||||||
|
final KStream<String, String> inputStream = builder.stream(stringSerde, stringSerde, "input");
|
||||||
|
inputStream.to(stringSerde,null,"output");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue