Open
Description
Describe the bug
As described in documentation createForward. The code functionality is broken
It throws a Null Pointer exception
Expected behavior
the below code is expected to create a Draft message
var result = graphClient.me().messages().byMessageId("{message-id}").createForward().post(null);
How to reproduce
graphServiceClient
.users()
.byUserId("replace@userid.com")
.messages()
.byMessageId("{replace-message-id}")
.createForward().post(null);
SDK Version
6.16.0
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
Exception in thread "main" java.lang.NullPointerException at java.util.Objects.requireNonNull(Objects.java:203) at com.microsoft.graph.users.item.messages.item.createforward.CreateForwardRequestBuilder.post(CreateForwardRequestBuilder.java:59) at com.microsoft.graph.users.item.messages.item.createforward.CreateForwardRequestBuilder.post(CreateForwardRequestBuilder.java:47) at org.example.Main.main(Main.java:97)
Configuration
No response
Other information
No response