[Bug]: Mocking function with optional parameter causing NullPointerException #43441
Labels
Area/TestFramework
Team/DevTools
Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs )
Type/Bug
Description
I have encountered a
NullPointerException
when mocking a function that takes an optional parameter with a default value of()
in Ballerina. When callingtest:when(mockedFunction).withArguments()
and passing()
as one of the arguments, I get the following error:Steps to Reproduce
Affected Version(s)
2201.9.0
OS, DB, other environment details and versions
No response
Related area
-> Test Framework
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: