We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HeadPose's equality method/methods do not take null into consideration and throw System.NullReferenceException.
HeadPose
null
System.NullReferenceException
Run the following code with NuGet package installed
using FaceRecognitionDotNet; HeadPose hp = null; var isNull = hp == null;
As per MSDN:
Implementations of Equals must not throw exceptions; they should always return a value.
So in this case hp == null should return true
hp == null
true
hp == null throws System.NullReferenceException at FaceRecognitionDotNet.HeadPose.op_Equality(HeadPose pose1, HeadPose pose2)
at FaceRecognitionDotNet.HeadPose.op_Equality(HeadPose pose1, HeadPose pose2)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Installed product versions
Description
HeadPose
's equality method/methods do not takenull
into consideration and throwSystem.NullReferenceException
.Steps to recreate
Run the following code with NuGet package installed
Expected behavior
As per MSDN:
So in this case
hp == null
should returntrue
Current behavior
hp == null
throwsSystem.NullReferenceException
at FaceRecognitionDotNet.HeadPose.op_Equality(HeadPose pose1, HeadPose pose2)
The text was updated successfully, but these errors were encountered: