Bug 5628 - Error while pasting text/rtf
Summary: Error while pasting text/rtf
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: Trunk
Hardware: PC Linux
: Normal normal
Target Milestone: ---
Assignee: Mike Krüger
: 5777 ()
Depends on:
Reported: 2012-06-13 04:38 UTC by Federico Di Gregorio
Modified: 2012-06-22 10:59 UTC (History)
2 users (show)

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:

Description Federico Di Gregorio 2012-06-13 04:38:03 UTC
This is what happens when pasting to a Java application that likes RTF text:

System.NullReferenceException: Object reference not set to an instance of an object
  at Mono.TextEditor.Utils.RtfWriter.GenerateRtf (Mono.TextEditor.TextDocument doc, ISyntaxMode mode, Mono.TextEditor.Highlighting.ColorScheme style, ITextEditorOptions options) [0x00061] in /home/fog/Workspaces/mono/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor.Utils/RtfWriter.cs:71 
  at Mono.TextEditor.ClipboardActions+CopyOperation.SetData (Gtk.SelectionData selection_data, UInt32 info) [0x00067] in /home/fog/Workspaces/mono/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Actions/ClipboardActions.cs:97 
  at Mono.TextEditor.ClipboardActions+CopyOperation.ClipboardGetFunc (Gtk.Clipboard clipboard, Gtk.SelectionData selection_data, UInt32 info) [0x00000] in /home/fog/Workspaces/mono/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Actions/ClipboardActions.cs:117 
  at GtkSharp.ClipboardGetFuncWrapper.NativeCallback (IntPtr clipboard, IntPtr selection_data, UInt32 info, IntPtr user_data_or_owner) [0x00000] in <filename unknown>:0
Comment 1 Mike Krüger 2012-06-13 05:31:41 UTC
Comment 2 Mike Krüger 2012-06-22 10:59:07 UTC
*** Bug 5777 has been marked as a duplicate of this bug. ***