From 904fd26e2b64f408361a8a85197f0edd92a5911a Mon Sep 17 00:00:00 2001 From: Siddharth Venkatesan Date: Wed, 15 Jan 2025 16:28:00 -0800 Subject: [PATCH] [fix][test] ensure EchoTranslator.processInput does not return null (#2664) --- .../src/test/java/ai/djl/serving/translator/EchoTranslator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serving/src/test/java/ai/djl/serving/translator/EchoTranslator.java b/serving/src/test/java/ai/djl/serving/translator/EchoTranslator.java index fabf62e77..533ec2ff7 100644 --- a/serving/src/test/java/ai/djl/serving/translator/EchoTranslator.java +++ b/serving/src/test/java/ai/djl/serving/translator/EchoTranslator.java @@ -37,7 +37,7 @@ public Batchifier getBatchifier() { @Override public NDList processInput(TranslatorContext ctx, Input input) { ctx.setAttachment("input", input); - return null; + return new NDList(); } @Override