Surface::makeImageSnapshot is correctly marked as @Nullable because _nMakeImageSnapshotR can return a null pointer. However, it doesn't check whether _nMakeImageSnapshotR returns null and instead always calls the Image constructor which will crash if the pointer is null.
Surface::makeImageSnapshot
is correctly marked as@Nullable
because_nMakeImageSnapshotR
can return a null pointer. However, it doesn't check whether_nMakeImageSnapshotR
returns null and instead always calls theImage
constructor which will crash if the pointer is null.