Question: In the findAndCopyValue method for a Subscriber Identity Module (SIM) API on Java Card, what is the expected outcome if the dstBuffer parameter is null?
Option 1: An instance of ToolkitException with reason code OUT_OF_TLV_BOUNDARIES is thrown.
Option 2: The method returns 0 to indicate an empty buffer was provided.
Option 3: A NullPointerException is thrown.
Option 4: The current TLV becomes undefined, and no exception is thrown.
Explanation: According to the API's conformance requirement for parameter errors, if dstBuffer is null, a NullPointerException shall be thrown. This ensures robustness by immediately highlighting the absence of a necessary resource, preventing potential NullPointerExceptions deeper in the code.