exasol / error-code-crawler-maven-plugin

Validator and crawler for exasol-error-codes in Java code
MIT License
1 stars 1 forks source link

NullPointerException when the error codes are not specified in the config #53

Closed AnastasiiaSergienko closed 2 years ago

AnastasiiaSergienko commented 3 years ago

How to reproduce

Create a code config file without tags:

error-tags:

Error Message

  Failed to execute goal com.exasol:error-code-crawler-maven-plugin:0.5.1:verify (default) on project row-level-security: E-ECM-7: Failed to read projects error_code_config.yml. Cannot construct instance of `com.exasol.errorcodecrawlermavenplugin.config.ErrorCodeConfig`, problem: `java.lang.NullPointerException`

Solution

Add a dedicated error and a message for this case.