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.

ColorConsoleWriter.WriteLabel causes NullReferenceException

See original GitHub issue

I’ve gotten this 7 times out of the last 9 builds on the build server at work. The only thing that should have changed from last night is that there’s a lot more parallelization going on. Oh, also I updated to NUnit Framework 3.8.0, duh…

Run Settings
    DisposeRunners: True
    WorkDirectory: [redacted]
    TestParametersDictionary: System.NullReferenceException: Object reference not set to an instance of an object.
   at NUnit.ConsoleRunner.ColorConsoleWriter.WriteLabel(String label, Object option, ColorStyle valueStyle)
   at NUnit.ConsoleRunner.ColorConsoleWriter.WriteLabelLine(String label, Object option, ColorStyle valueStyle)
   at NUnit.ConsoleRunner.ResultReporter.WriteRunSettingsReport()
   at NUnit.ConsoleRunner.ResultReporter.ReportResults()
   at NUnit.ConsoleRunner.ConsoleRunner.RunTests(TestPackage package, TestFilter filter)
   at NUnit.ConsoleRunner.Program.Main(String[] args)

Fails with error -100.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:18 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
mikkelbucommented, Jan 13, 2018

@ChrisMaddock I’ve only written the “production-code” (and performed manual testing), so I also need to implement some tests, so you can keep this issue 😄 .

1reaction
rprousecommented, Dec 12, 2017

Go ahead and take it.

On Dec 12, 2017 7:55 AM, “Chris Maddock” notifications@github.com wrote:

@rprouse https://github.com/rprouse - did you make a start on this in the end? I’d like to get it in for the next console release - I can take it if you prefer? 🙂

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nunit/nunit-console/issues/285#issuecomment-351043192, or mute the thread https://github.com/notifications/unsubscribe-auth/AAeJBKyEGk7OwDzMLRxCv4x9-0xeNLS9ks5s_nepgaJpZM4PE9ba .

Read more comments on GitHub >

github_iconTop Results From Across the Web

NUnit 3.2.0 Console Runner System. ...
I want to be able to run parameterized tests from multiple assemblies in parallel using the console runner. Since that requires loading static ......
Read more >
Console and Engine Release Notes
RunTests(ITestEventListener listener, TestFilter filter); 285 ColorConsoleWriter.WriteLabel causes NullReferenceException; 289 Warnings not displayed ...
Read more >
How can I fix the error: System.NullReferenceException
A NullReferenceException exception is thrown when you try to access a member on a type whose value is null. A NullReferenceException exception ...
Read more >
NullReferenceException Class (System)
To address this problem, instantiate the object so that its value is no longer null . The following example does this by calling...
Read more >
An unconventional way of investigating a ...
I was trying to call a virtual method on a null reference; This caused a segmentation fault, which was caught by the runtime...
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