-
Improvement
-
Resolution: Fixed
-
Neutral
-
1.7.2
-
None
-
-
Empty show more show less
I created an importer for a data type. The importer works great but was giving me a NullPointerException when starting the server. It's because I did not create a content node and data node automatedExecution/enabled=>false. I did not create the node because I don't need scheduled execution. The importer is throwing a NPE because of this line of code in DataModule.java in the initImporter method:
if (importer.getAutomatedExecution().isEnabled()) { //getAutomatedExecution() return null
The property automatedExecution/enabled will not be mandatory if you replace with something like this:
if (importer.getAutomatedExecution() != null && importer.getAutomatedExecution().isEnabled()) {
You can also initialize AutomatedExecutionConfig to disable by default instead of leaving it null.
thanks