question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Object reference not set to an instance of an object

See original GitHub issue

Describe 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:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
gfscommented, Jul 28, 2021

Thanks for the report. I have a fix for this in #308 which I’ll merge in the next hour or so.

0reactions
michaelw85commented, Jul 28, 2021

@gfs that’s awesome! Thx for the quick fix

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found