-
-
Notifications
You must be signed in to change notification settings - Fork 802
New issue
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
Compared with null after type conversion using 'as' keyword #237
Comments
stakx
added a commit
to stakx/moq
that referenced
this issue
May 31, 2017
stakx
added a commit
to stakx/moq
that referenced
this issue
May 31, 2017
(This fixes devlooped#237.)
stakx
added a commit
to stakx/moq
that referenced
this issue
May 31, 2017
This was referenced May 31, 2017
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
V3019 Possibly an incorrect variable is compared to null after type conversion using 'as' keyword. Check variables 'value', 'valueExpression'. ExpressionMatcher.cs 62
It is most likely the object of the derived class that the programmer intended to check for null before using it. This is the fixed version of the code:
This place is found by a static analyzer PVS-Studio.
The text was updated successfully, but these errors were encountered: