|
|
|
@ -68,8 +68,13 @@ namespace ICSharpCode.SharpDevelop.Dom
@@ -68,8 +68,13 @@ namespace ICSharpCode.SharpDevelop.Dom
|
|
|
|
|
|
|
|
|
|
public string GetDocumentation(string key) |
|
|
|
|
{ |
|
|
|
|
if (xmlDescription == null) |
|
|
|
|
throw new ObjectDisposedException("XmlDoc"); |
|
|
|
|
if (xmlDescription == null) { |
|
|
|
|
//throw new ObjectDisposedException("XmlDoc");
|
|
|
|
|
// Sometimes SD accesses a project content after it is disposed.
|
|
|
|
|
// Not sure why, but we can avoid the crash by just returning null.
|
|
|
|
|
// SD5 fixes the issue by making IProjectContent immutable (no Dispose() method)
|
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
lock (xmlDescription) { |
|
|
|
|
string result; |
|
|
|
|
if (xmlDescription.TryGetValue(key, out result)) |
|
|
|
|