Bug 14208 - Copy file path/name throws an exception
Summary: Copy file path/name throws an exception
Status: VERIFIED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Assembly browser ()
Version: Trunk
Hardware: PC Mac OS
: --- normal
Target Milestone: master
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2013-08-23 09:31 UTC by Rolf Bjarne Kvinge [MSFT]
Modified: 2014-03-27 03:55 UTC (History)
2 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 Rolf Bjarne Kvinge [MSFT] 2013-08-23 09:31:21 UTC
Repro:
* Open an assembly in the Assembly Browser.
* Right-click the tab, select "Copy file path/name"

Result:
System.ArgumentNullException: Argument cannot be null.
Parameter name: s
  at System.Text.Encoding.GetByteCount (System.String s) [0x00029] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.1/mcs/class/corlib/System.Text/Encoding.cs:198 
  at System.Text.UTF8Encoding.GetByteCount (System.String chars) [0x00000] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.1/mcs/class/corlib/System.Text/UTF8Encoding.cs:912 
  at Gtk.Clipboard.set_Text (System.String value) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Commands.CopyPathNameHandler.Run () [0x00034] in /Users/builder/data/lanes/monodevelop-lion-master/e962ee83/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileTabCommands.cs:73 
  at MonoDevelop.Components.Commands.CommandHandler.Run (System.Object dataItem) [0x00002] in /Users/builder/data/lanes/monodevelop-lion-master/e962ee83/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandHandler.cs:61 
  at MonoDevelop.Components.Commands.CommandHandler.InternalRun (System.Object dataItem) [0x00003] in /Users/builder/data/lanes/monodevelop-lion-master/e962ee83/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandHandler.cs:42 
  at MonoDevelop.Components.Commands.CommandManager.DefaultDispatchCommand (MonoDevelop.Components.Commands.ActionCommand cmd, MonoDevelop.Components.Commands.CommandInfo info, System.Object dataItem, System.Object target, CommandSource source) [0x00086] in /Users/builder/data/lanes/monodevelop-lion-master/e962ee83/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1109 
  at MonoDevelop.Components.Commands.CommandManager.DispatchCommand (System.Object commandId, System.Object dataItem, System.Object initialTarget, CommandSource source) [0x002fc] in /Users/builder/data/lanes/monodevelop-lion-master/e962ee83/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1076
Comment 1 Mike Krüger 2013-08-23 11:14:46 UTC
fixed
Comment 2 Nischal 2014-03-27 03:55:47 UTC
"Copy file path/name" at Assembly browser doesn't show any error.
Screencast:http://screencast.com/t/SfH4oN5EpsI

Environment Info:
Xamarin Studio
Version 4.2.4 (build 266) 
Build Information
Git revision: 57fa6b7639703775ae1d5c46536e42ab424cb177
Xamarin addins: eee141c29724a19529e77b8e743086d95b29f5ba
Xamarin.Android 4.13.0-144 (MAC)
Xamarin.Android 4.13.0-04 (Win)