From 15bf8cae0c6f23269a5fad81f1f380ce60e1eccf Mon Sep 17 00:00:00 2001 From: "LAPTOP-L3VE7KK2\\USER" Date: Tue, 15 Oct 2024 16:13:29 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B2=AC=EC=A0=81=EC=84=9C=20=EC=B2=A8?= =?UTF-8?q?=EB=B6=80=ED=8C=8C=EC=9D=BC=20=EB=8B=A4=EC=9A=B4=EB=A1=9C?= =?UTF-8?q?=EB=93=9C=20API=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/interplug/qcast/biz/object/ObjectService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/interplug/qcast/biz/object/ObjectService.java b/src/main/java/com/interplug/qcast/biz/object/ObjectService.java index 9fc83c16..f0116303 100644 --- a/src/main/java/com/interplug/qcast/biz/object/ObjectService.java +++ b/src/main/java/com/interplug/qcast/biz/object/ObjectService.java @@ -421,7 +421,11 @@ public class ObjectService { inputStream = new BufferedInputStream(new FileInputStream(file)); FileCopyUtils.copy(inputStream, response.getOutputStream()); + } else { + throw new QcastException(ErrorCode.INTERNAL_SERVER_ERROR); } + } else { + throw new QcastException(ErrorCode.INTERNAL_SERVER_ERROR); } } catch (Exception e) { throw new QcastException(ErrorCode.INTERNAL_SERVER_ERROR);