If you create a custom editor in the EditorNeeded event or method override, and don't set the editor's value, an exception is thrown. Reproducible only with DataProvider. To work this around set the custom editor's initial value to a value different than null. Or you can use the events instead of DataProvider.
The fix for this issue will be available with our next LIB version 2018.03.101