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;