null reference when running with -h

Bug #1161309 reported by Johan Fänge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
NUnitLite
Incomplete
Undecided
Unassigned

Bug Description

This gives me a NullReference exception in 0.8.0:

var sw = new System.IO.StringWriter();
new NUnitLite.Runner.TextUI(sw).Execute(new [] { "-h" });

After the exception sw contains:

"NUnitLite 0.8.0 (.NET 3.5)
Copyright 2012, Charlie Poole

"

System.NullReferenceException occurred
  Message=Object reference not set to an instance of an object.
  Source=nunitlite
  StackTrace:
       at NUnitLite.Runner.CommandLineOptions.get_HelpText()
       at NUnitLite.Runner.TextUI.Execute(String[] args)

Revision history for this message
Johan Fänge (johanfange) wrote :

I can still run tests without problem.

Revision history for this message
Charlie Poole (charlie.poole) wrote : Re: [Bug 1161309] Re: null reference when running with -h

I'm not able to replicate this using the source code for NUnitLite 0.8.0.
Did you build from source or use one of the downloads?

Charlie

On Thu, Mar 28, 2013 at 3:14 AM, Johan Fänge <email address hidden>wrote:

> I can still run tests without problem.
>
> --
> You received this bug notification because you are subscribed to
> NUnitLite.
> https://bugs.launchpad.net/bugs/1161309
>
> Title:
> null reference when running with -h
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/nunitlite/+bug/1161309/+subscriptions
>

Changed in nunitlite:
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.