When nunit started in debug mode, show source gives exception

Bug #427554 reported by Adriaan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
monodevelop (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: monodevelop

start nunit test in debug mode
choose show source in the context menu of the unit test. Giving exception below:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
  at MonoDevelop.NUnit.NUnitProjectTestSuite.GetSourceCodeLocation (System.String fullClassName, System.String methodName) [0x00000] in /opt/monodevelop/monodevelop/main/src/addins/NUnit/Services/NUnitProjectTestSuite.cs:74
  at MonoDevelop.NUnit.NUnitAssemblyTestSuite.GetSourceCodeLocation (MonoDevelop.NUnit.UnitTest test) [0x00012] in /opt/monodevelop/monodevelop/main/src/addins/NUnit/Services/NUnitAssemblyTestSuite.cs:86
  at MonoDevelop.NUnit.NUnitTestCase.get_SourceCodeLocation () [0x00019] in /opt/monodevelop/monodevelop/main/src/addins/NUnit/Services/NUnitTestCase.cs:71
  at MonoDevelop.NUnit.TestNodeCommandHandler.OnUpdateRunTest (MonoDevelop.Components.Commands.CommandInfo info) [0x00011] in /opt/monodevelop/monodevelop/main/src/addins/NUnit/Gui/TestNodeBuilder.cs:183
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000]
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000]
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000]
  at MonoDevelop.Components.Commands.DefaultCommandHandler.CommandUpdate (System.Object target, MonoDevelop.Components.Commands.CommandInfo info) [0x00012] in /opt/monodevelop/monodevelop/main/src/core/MonoDevelop.Components/MonoDevelop.Components.Commands/CommandManager.cs:1225
  at MonoDevelop.Components.Commands.CustomCommandUpdaterAttribute.CommandUpdate (System.Object target, MonoDevelop.Components.Commands.CommandInfo cinfo) [0x00000] in /opt/monodevelop/monodevelop/main/src/core/MonoDevelop.Components/MonoDevelop.Components.Commands/CustomCommandUpdaterAttribute.cs:70
  at MonoDevelop.Ide.Gui.Components.MultiSelectionNodeHandlerAttribute.CommandUpdate (System.Object target, MonoDevelop.Components.Commands.CommandInfo cinfo) [0x00000] in /opt/monodevelop/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/NodeCommandHandler.cs:283
  at MonoDevelop.Components.Commands.CustomCommandUpdaterAttribute.MonoDevelop.Components.Commands.ICommandUpdateHandler.CommandUpdate (System.Object target, MonoDevelop.Components.Commands.CommandInfo cinfo) [0x00000] in /opt/monodevelop/monodevelop/main/src/core/MonoDevelop.Components/MonoDevelop.Components.Commands/CustomCommandUpdaterAttribute.cs:42
  at MonoDevelop.Components.Commands.CommandUpdaterInfo.Run (System.Object cmdTarget, MonoDevelop.Components.Commands.CommandInfo info) [0x00017] in /opt/monodevelop/monodevelop/main/src/core/MonoDevelop.Components/MonoDevelop.Components.Commands/CommandManager.cs:1192
  at MonoDevelop.Components.Commands.CommandManager.GetCommandInfo (System.Object commandId, System.Object initialTarget) [0x000af] in /opt/monodevelop/monodevelop/main/src/core/MonoDevelop.Components/MonoDevelop.Components.Commands/CommandManager.cs:611

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.