You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@reef.apache.org by Andrey Meleshko <an...@microsoft.com> on 2016/10/07 21:15:34 UTC
Tang ConfigurationBuilderImpl throws NullReference exception if one
of initialization configurations is null
Hi,
The ConfigurationBuilderImpl constructor expects all configurations in the initialization array to be not null, otherwise it throws NullReferenceException
Referring to this constructor:
protected ConfigurationBuilderImpl(string[] assemblies, IConfiguration[] confs, Type[] parsers)
Is this intentional?
If yes, it should probably throw a better error message (like ArgumentException with friendly message)
Or can we relax the builder code and just skip null configs assuming some configs are optional?
(this can hide potential issue in the client code though)
Thank you,
Andrey