Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

KeyNotFound exception in Dommel resolvers #25

Closed
henkmollema opened this issue Mar 3, 2015 · 1 comment
Closed

KeyNotFound exception in Dommel resolvers #25

henkmollema opened this issue Mar 3, 2015 · 1 comment

Comments

@henkmollema
Copy link
Owner

Accessing an entity map for a type which has not entity map results in a KeyNotFound exception due to the fact that an indexer is used without a ContainsKey check:

var mapping = FluentMapper.EntityMaps[type] as IDommelEntityMap;

TryGetValue should be used here.

@henkmollema henkmollema added the bug label Mar 3, 2015
@henkmollema henkmollema self-assigned this Mar 3, 2015
@henkmollema henkmollema modified the milestone: v1.4 Mar 3, 2015
@henkmollema
Copy link
Owner Author

Fixed with 7ea72fc.

@henkmollema henkmollema modified the milestones: v1.3.4, v1.4 Mar 13, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant