[mono/monodevelop] 5cf75514: Fixed 'Bug 16281 - Error closing the MonoDevelop project using 4.2.0'.

Mike Krüger ([email protected]) <[email protected]> Sat, 16 Nov 2013 06:27:05 +0000
Newsgroups gmane.comp.gnome.mono.patches
Message-ID <000001425f9760d4-f6e910ae-b25c-409d-9981-67e6c41ffd0f-000000@email.amazonses.com>
   Branch: refs/heads/master
     Home: https://github.com/mono/monodevelop
  Compare: https://github.com/mono/monodevelop/compare/83443f662e3b...5cf75514f611

   Commit: 5cf75514f6116fed1e4adadac02d9b2f09ee3ba6
   Author: Mike Krüger <[email protected]> (mkrueger)
     Date: 2013-11-16 06:25:23 GMT
      URL: https://github.com/mono/monodevelop/commit/5cf75514f6116fed1e4adadac02d9b2f09ee3ba6

Fixed 'Bug 16281 - Error closing the MonoDevelop project using 4.2.0'.

Changed paths:
  M main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/TypeSystemService.cs

Modified: main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/TypeSystemService.cs
===================================================================
@@ -1736,7 +1736,8 @@ internal static void UnloadProject (Project project)
 				
 			ProjectContentWrapper wrapper;
 			lock (projectWrapperUpdateLock) {
-				wrapper = projectContents [project];
+				if (!projectContents.TryGetValue (project, out wrapper))
+					return;
 				projectContents.Remove (project);
 			}
 			StoreProjectCache (project, wrapper);
_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches