powsybl-core icon indicating copy to clipboard operation
powsybl-core copied to clipboard

Importers method do not support null object for DataSource, Path, InputStream, etc.

Open miovd opened this issue 2 years ago • 0 comments

  • Do you want to request a feature or report a bug? Bug

  • What is the current behavior? Null objects in Importers method are processed without any throwed exception.

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem This has been discussed here. There are tests that show this behavior.

  • What is the expected behavior? An exception should be thrown: objects should be required not null.

  • What is the motivation / use case for changing the behavior? Preventing NPE along the way

miovd avatar Mar 01 '22 09:03 miovd