Bug 5348 - Copy-paste of any file inside a project throws exception
Summary: Copy-paste of any file inside a project throws exception
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Designer ()
Version: 3.0.x
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Lluis Sanchez
Depends on:
Reported: 2012-05-26 03:19 UTC by Marek
Modified: 2012-05-31 10:10 UTC (History)
0 users

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 Marek 2012-05-26 03:19:03 UTC
Copying and paste anything inside a project throws 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 Xamarin.AndroidDesigner.DesignerSession.Refresh(Boolean asyncRefresh)
   at Xamarin.AndroidDesigner.DesignerSession.Refresh()
   at Xamarin.AndroidDesigner.DesignerProject.NotifyResourceChangesToSessions(DesignerSession sessionToExclude, Boolean refresh)
   at Xamarin.AndroidDesigner.DesignerProject.NotifyProjectFileChange(IEnumerable`1 paths, PathChange change)
   at MonoDevelop.MonoDroid.Gui.AndroidProjectWrapper.HandleFileCreated(Object sender, FileEventArgs e)
   at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
Comment 1 Lluis Sanchez 2012-05-29 08:33:02 UTC
I can't reproduce this exception. Do you have a layout open when you get this exception? Can you consistently reproduce it?
Comment 2 Marek 2012-05-29 16:36:02 UTC
It no longer appears, on version 3.0.2
Comment 3 Lluis Sanchez 2012-05-31 10:10:25 UTC
Ok, if you experience this problem again, feel free to reopen the bug.