Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyNotFoundException when pick an icon and then unpick it #2

Closed
AvihayTWB opened this issue Feb 8, 2022 · 0 comments
Closed

KeyNotFoundException when pick an icon and then unpick it #2

AvihayTWB opened this issue Feb 8, 2022 · 0 comments

Comments

@AvihayTWB
Copy link

Hi.

First of all- love this package. I use it a lot. thanks.

I get this convertor error:
KeyNotFoundException: The given key '00000000-0000-0000-0000-000000000000' was not present in the dictionary.
System.Collections.Generic.Dictionary<TKey, TValue>.get_Item(TKey key)
Our.Iconic.Core.ValueConverters.IconicValueConverter.ConvertIntermediateToObject(IPublishedElement owner, IPublishedPropertyType propertyType, PropertyCacheLevel referenceCacheLevel, object inter, bool preview)
Umbraco.Cms.Core.Models.PublishedContent.PublishedPropertyType.ConvertInterToObject(IPublishedElement owner, PropertyCacheLevel referenceCacheLevel, object inter, bool preview)
Umbraco.Cms.Core.PublishedCache.PublishedElementPropertyBase.GetValue(string culture, string segment)
Umbraco.Extensions.PublishedPropertyExtension.Value(IPublishedProperty property, IPublishedValueFallback publishedValueFallback, string culture, string segment, Fallback fallback, T defaultValue)
Umbraco.Extensions.PublishedElementExtensions.Value(IPublishedElement content, IPublishedValueFallback publishedValueFallback, string alias, string culture, string segment, Fallback fallback, T defaultValue)
Umbraco.Cms.Web.Common.PublishedModels.MenuItem.get_Icon() in MenuItem.generated.cs

while trying to render an icon for menu items.
If all menu items got an icon - it renders great. But if I unpick one and save I get the error above...
I think it happens only when I pick an icon and then unpick it and save.

seems to be something with the value convertor.
Any Idea for a workaround?

robertjf added a commit to robertjf/Iconic that referenced this issue Mar 18, 2022
skartknet added a commit that referenced this issue Mar 19, 2022
fixes issues #2 #4 and an issue on startup with duplicate Dictionary …
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants