From 16e98ca7958b7743367982b8cd349b858a4b58e3 Mon Sep 17 00:00:00 2001 From: Theo Belaire Date: Thu, 21 Jan 2021 11:57:27 -0500 Subject: [PATCH] Actually throw exception in MSBatchRequestStep It was created but not thrown, which just discards it. --- .../java/com/microsoft/graph/content/MSBatchRequestStep.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/microsoft/graph/content/MSBatchRequestStep.java b/src/main/java/com/microsoft/graph/content/MSBatchRequestStep.java index ac13bb0ab..9e4265a41 100644 --- a/src/main/java/com/microsoft/graph/content/MSBatchRequestStep.java +++ b/src/main/java/com/microsoft/graph/content/MSBatchRequestStep.java @@ -15,7 +15,7 @@ public MSBatchRequestStep(String requestId, Request request, List arrayO if(requestId.length() == 0) throw new IllegalArgumentException("Request Id cannot be empty."); if(request == null) - new IllegalArgumentException("Request cannot be null."); + throw new IllegalArgumentException("Request cannot be null."); this.requestId = requestId; this.request = request;