Hello,

I keep getting an NPE from an admin central page that activates nodes.  The 
code is a port from a 4.4.x based project to a 4.5.3 based new project.  The 
error trace is as follows:

Jul 17, 2012 1:31:57 PM ucp.cms.cmos.faq.page.FAQList activate
SEVERE: Error activating node: /faq/topics/Quotations/faq0001
info.magnolia.cms.exchange.ExchangeException: java.lang.NullPointerException
at 
info.magnolia.module.exchangesimple.BaseSyndicatorImpl.activate(BaseSyndicatorImpl.java:358)
at 
info.magnolia.module.exchangesimple.BaseSyndicatorImpl.activate(BaseSyndicatorImpl.java:282)
at 
info.magnolia.module.exchangesimple.BaseSyndicatorImpl.activate(BaseSyndicatorImpl.java:267)
at info.magnolia.cms.exchange.Syndicator$activate.call(Unknown Source)
at 
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
at ucp.cms.Page.activate(Page.groovy:183)
Caused by: java.lang.NullPointerException
at 
info.magnolia.module.exchangesimple.BaseSyndicatorImpl.activate(BaseSyndicatorImpl.java:320)

Line 320 in BaseSyndicatorImpl (from current version in git) is a call to 
content.getUUID() which I have verified is fine through the groovy console.

The calling code is along the following lines:

      final SimpleSyndicator syndicator = new SimpleSyndicator()
      syndicator.init getUser(), repository, session.workspace.name, new Rule()

      syndicator.activate n.parent.path, asContent( n )

Any ideas as to why I get the NPE.  I have made sure that the parent path and 
node (n variable) is not null.

Thanks
Rakesh


----------------------------------------------------------------
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