forked from kimhyungsik/ax_hub_mcp_tool
This commit is contained in:
@@ -23,6 +23,15 @@ public class MemoListRetrieverUseCaseImpl implements MemoListRetrieverUseCase {
|
||||
MemoListRetrieverHttpResponse httpResponse = memoClient.call(httpRequest, MemoListRetrieverHttpResponse.class);
|
||||
|
||||
MemoListRetrieverResponse response = converter.toResponse(httpResponse);
|
||||
|
||||
// Sparrow NULL_RETURN (널 역참조) 방어 로직
|
||||
if (response == null) {
|
||||
response = new MemoListRetrieverResponse();
|
||||
response.setResultCode("ERROR");
|
||||
response.setResultMessage("HTTP API 응답이 없거나 변환에 실패했습니다.");
|
||||
return response;
|
||||
}
|
||||
|
||||
response.setResultCode("SUCCESS");
|
||||
response.setResultMessage("HTTP API call completed.");
|
||||
return response;
|
||||
|
||||
Reference in New Issue
Block a user