Skip to content

Reverting FindIconForKey to return null if no icon found (Issue #119 and #28)#121

Merged
jsmarcus merged 3 commits into
jsmarcus:masterfrom
EndlessDelirium:databindingfix
Jan 18, 2019
Merged

Reverting FindIconForKey to return null if no icon found (Issue #119 and #28)#121
jsmarcus merged 3 commits into
jsmarcus:masterfrom
EndlessDelirium:databindingfix

Conversation

@EndlessDelirium

Copy link
Copy Markdown
Contributor

Since 6638c67#diff-913f8d5c561cd24bc687f40058980ae2 the behavior of FindIconForKey was changed from returning null to throwing an exception when no suitable icon is found. This might look like a good idea at first as it certainly helps dealing with misspelled icon names but it breaks things for people using data binding where it is common that iconKey will be null at first. The related issues are #119 and #28.
I suggest to revert to the original behavior until a better solution has been found.

…uitable icon can be provided for whatever reason as throwing an exception without also adapting the renderers breaks things for virtually everyone who uses data binding as can be seen in jsmarcus#119 and jsmarcus#28
@jsmarcus jsmarcus merged commit 171c2aa into jsmarcus:master Jan 18, 2019
@EndlessDelirium EndlessDelirium deleted the databindingfix branch January 21, 2019 03:41
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

Successfully merging this pull request may close these issues.

2 participants