-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
NullPointerException when csproj has Remove attribute #5144
Comments
Not surprisingly.... as the only documented package reference is an Include |
So how is one to know that there is actually also a "Remove" version of it (let alone be aware of what effects that would have) |
The NullPointerException would be easy to fix, but proper behaviour of the analyzer will likely require to also make the "Remove" option yield the expected effect (which is fully undocumented) |
Hello, Besides the "Remove" option, there is no support for "Update". For example, the following configuration causes the NullPointerException.
|
Improved version of #5293. We should not attempt dereference of the null-valued attribute-node of an absent Include attribute
This should be fixed with 8.2.1 |
Describe the bug
When you have a csproj file that has PackageReference with a Remove attribute, DependencyCheck fails with a NullPointerException.
Version of dependency-check used
6.0.4 in Azure Devops, which is the cli version, if I'm not mistaking.
Log file
Log in reproduction steps.
To Reproduce
Steps to reproduce the behavior:
Have a csproj like this where the PackageReference with Remove attribute is the important one
Run a scan and see this exception in the console
And this in the log on the agent:
Expected behavior
The scan to complete successully.
The text was updated successfully, but these errors were encountered: