diff --git a/src/main/java/com/microsoft/graph/http/BaseCollectionRequest.java b/src/main/java/com/microsoft/graph/http/BaseCollectionRequest.java index c148ef198..694703cb2 100644 --- a/src/main/java/com/microsoft/graph/http/BaseCollectionRequest.java +++ b/src/main/java/com/microsoft/graph/http/BaseCollectionRequest.java @@ -441,8 +441,7 @@ public IHttpRequest withHttpMethod(@Nonnull final HttpMethod httpMethod) { */ @Override @Nullable - public nativeRequestType getHttpRequest(@Nonnull final requestBodyType serializedObject) throws ClientException { - Objects.requireNonNull(serializedObject, "parameter serializedObject cannot be null"); + public nativeRequestType getHttpRequest(@Nullable final requestBodyType serializedObject) throws ClientException { return baseRequest.getHttpRequest(serializedObject); } }