Bug 22608 - Jump to location causes exception
Summary: Jump to location causes exception
Status: VERIFIED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 5.0
Hardware: PC Mac OS
: Normal normal
Target Milestone: 5.7
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2014-09-03 14:21 UTC by Miguel de Icaza [MSFT]
Modified: 2014-11-27 00:44 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description Miguel de Icaza [MSFT] 2014-09-03 14:21:21 UTC
If you press command-. and enter a line number (:43) you get the following exception:

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.Components.MainToolbar.MainToolbar+<MainToolbar>c__AnonStorey0.<>m__A (System.Object sender, System.EventArgs e) [0x00041] in /Users/builder/data/lanes/1119/f4bb573b/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.MainToolbar/MainToolbar.cs:312 
  at MonoDevelop.Components.SearchEntry.NotifyActivated () [0x00018] in /Users/builder/data/lanes/1119/f4bb573b/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/SearchEntry.cs:205 
  at MonoDevelop.Components.SearchEntry.<BuildWidget>m__0 (System.Object , System.EventArgs ) [0x00002] in /Users/builder/data/lanes/1119/f4bb573b/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/SearchEntry.cs:167 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,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) [0x00054] in /Volumes/build-root-ramdisk/mono-3.8.0/mcs/class/corlib/System.Reflection/MonoMethod.cs:230 
  --- 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) [0x00069] in /Volumes/build-root-ramdisk/mono-3.8.0/mcs/class/corlib/System.Reflection/MonoMethod.cs:238 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /Volumes/build-root-ramdisk/mono-3.8.0/mcs/class/corlib/System.Reflection/MethodBase.cs:114 
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00107] in /Volumes/build-root-ramdisk/mono-3.8.0/mcs/class/corlib/System/Delegate.cs:462 
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00018] in /Volumes/build-root-ramdisk/mono-3.8.0/mcs/class/corlib/System/MulticastDelegate.cs:70 
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in /Volumes/build-root-ramdisk/mono-3.8.0/mcs/class/corlib/System/Delegate.cs:407 
  at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00050] in /Volumes/build-root-ramdisk/gtk-sharp-2.12.21/glib/Signal.cs:195 
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00019] in /Volumes/build-root-ramdisk/gtk-sharp-2.12.21/glib/SignalClosure.cs:118 
  at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00084] in /Volumes/build-root-ramdisk/gtk-sharp-2.12.21/glib/SignalClosure.cs:146
Comment 1 Mike Krüger 2014-09-04 01:34:55 UTC
Fixed in 5.7.0.16
Comment 2 Sadik Ali 2014-11-27 00:44:30 UTC
I have checked this issue with the following builds:

Xamarin Studio:5.7 (build 596)
Mono 3.12.0 ((detached/b75fa2b)
Apple Developer Tools:Xcode 6.1 (6604)
Xamarin.iOS : 8.6.0.5 (Business Edition)
Xamarin.Android : 5.0.0.0 (Business Edition)
Git revision: d996e9ba6874a0d64241e43e5e6b06322ce29c84
Xamarin addins: 8ca19707b41536a391f53364ee4ff9272711feb0
Operating System: Mac OS X 10.9.5

I observed that I am able to Jump to location successfully, without any exception by pressing command-. and enter a line number eg: (:28).

http://www.screencast.com/t/33788CdkD1f

Hence closing this issue.