You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
InputBase throws on Dispose if not in EditContext #30990
Seems that if you add an InputSelect and forget to put it inside an EditContext it causes a great Exception to be thrown but sadly then throws null exception in the finally instead...
Activity
javiercn commentedon Mar 17, 2021
@NikolaosWakem thanks for contacting us.
Inputs like InputText are not meant to be used outside of an
EditFrom/EditContextjaviercn commentedon Mar 17, 2021
@SteveSandersonMS this is what I ran into the other day in a more "subtle" way.
NikolaosWakem commentedon Mar 18, 2021
Yes - I realise that.. but code shouldn't throw a null exception in a dispose
This bug means the real exception is lost.. I had to step into the framework to find what was causing a random null exception
SteveSandersonMS commentedon Mar 31, 2021
Thanks for reporting this. Hopefully it should be a very simple fix if anyone in the community is interested in sending a PR.
Do not throwing on InputBase.Dispose() if not in EditContext. (#31510)
PR (#2)