Skip to content

Commit 904fd26

Browse files
authored
[fix][test] ensure EchoTranslator.processInput does not return null (deepjavalibrary#2664)
1 parent 7315729 commit 904fd26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

serving/src/test/java/ai/djl/serving/translator/EchoTranslator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public Batchifier getBatchifier() {
3737
@Override
3838
public NDList processInput(TranslatorContext ctx, Input input) {
3939
ctx.setAttachment("input", input);
40-
return null;
40+
return new NDList();
4141
}
4242

4343
@Override

0 commit comments

Comments
 (0)