Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

[Caching] Prevent IOE from happening in TreeNode::ResetCacheData() #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

knocte
Copy link
Contributor

@knocte knocte commented Jun 12, 2013

If AddinDatabase.ResetCacheData() ends up calling TreeNode.ResetCacheData(),
an InvalidOperationException could be thrown when trying to read an addin
description, because the "basic cache data" has already been reset by
AddinDatabase.ResetBasicCacheData(). In this case, just bail and ignore.

Fixes http://monoaddins.codeplex.com/workitem/8364

If AddinDatabase.ResetCacheData() ends up calling TreeNode.ResetCacheData(),
an InvalidOperationException could be thrown when trying to read an addin
description, because the "basic cache data" has already been reset by
AddinDatabase.ResetBasicCacheData(). In this case, just bail and ignore.

Fixes http://monoaddins.codeplex.com/workitem/8364
Base automatically changed from master to main March 9, 2021 14:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant