The property automatedExecution should be optional when creating an importer
----------------------------------------------------------------------------

                 Key: MGNLDATA-154
                 URL: http://jira.magnolia-cms.com/browse/MGNLDATA-154
             Project: Magnolia Data Module
          Issue Type: Improvement
    Affects Versions: 1.7.2
            Reporter: Jean-Francois Nadeau
            Assignee: Philipp Bärfuss


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()) { 

thanks

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       


----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to