Object reference not set to an instance of an object
See original GitHub issueDescribe the bug
PS C:\git\p1> dotnet tool update --global Microsoft.CST.DevSkim.CLI --add-source https://nuget.org/api/v2/
Tool 'microsoft.cst.devskim.cli' was successfully updated from version '0.4.218' to version '0.4.242'.
PS C:\git\p1> devskim analyze . .\devskim.sarif -f sarif
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.DevSkim.CLI.Commands.AnalyzeCommand..ctor(String path, String output, String outputFileFormat, String outputTextFormat, String severities, String rules, Boolean ignoreDefault, Boolean suppressError, Boolean disableSuppression, Boolean crawlArchives, Boolean disableParallel, Boolean exitCodeIsNumIssues, String globOptions) in D:\a\1\s\DevSkim-DotNet\Microsoft.DevSkim.CLI\Commands\AnalyzeCommand.cs:line 46
at Microsoft.DevSkim.CLI.Commands.AnalyzeCommand.<>c__DisplayClass1_0.<Configure>b__0() in D:\a\1\s\DevSkim-DotNet\Microsoft.DevSkim.CLI\Commands\AnalyzeCommand.cs:line 110
at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
at Microsoft.DevSkim.CLI.Program.Main(String[] args) in D:\a\1\s\DevSkim-DotNet\Microsoft.DevSkim.CLI\Program.cs:line 14
Versions(please complete the following information):
- OS: [e.g. Windows 10 version 1909]
- Devskim Version 0.4.242
Unfortunately I have no access to older version to verify if it was working before
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Object Reference Not Set to an Instance of an Object
This infamous and dreaded error message happens when you get a NullReferenceException. This exception is thrown when you try to access a member—for...
Read more >What does "Object reference not set to an instance of an ...
In a nutshell it means.. You are trying to access an object without instantiating it.. You might need to use the "new" keyword...
Read more >Object reference not set to an instance of an object. - Forum
The message "object reference not set to an instance of an object" means that you are referring to an object the does not...
Read more >How to solve error object reference not set to an instance of ...
I work on csharp i get error object reference not set to an instance of an object code give me error var Data...
Read more >How to Fix Object Reference Not Set To An Instance of an Object
Error Message: Object Reference Not Set To An Instance of an Object Subscribe for uipath tutorial videos The error: "Object Reference Not ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the report. I have a fix for this in #308 which I’ll merge in the next hour or so.
@gfs that’s awesome! Thx for the quick fix