[xwiki-devs] Error in template editobject.vm
Hello XWiki Dev's I am getting this error: Error number 4001 in 4: Error while parsing velocity page /skins/covisint_coe/editobject.vm Wrapped Exception: Invocation of method 'displayEdit' in class com.xpn.xwiki.api.Document threw exception java.lang.NullPointerException @ /skins/covisint_coe/editobject.vm[59,10] I am attempting to edit objects on .../Main/WebHome and am getting this error. Is there a way to ignore the bad object in the template? Is there a way to diagnose what the problem is? The line with the problem is <dd>$doc.displayEdit($prop, "${class.name}_${obj.number}_" , $obj)</dd> I think something is wrong with $obj but I don't know which object or how to remove it now that I can't edit objects. The only thing I was changing at the time of failure was adding a group and remove a group. Please help Glenn Everitt -- View this message in context: http://www.nabble.com/Error-in-template-editobject.vm-tp16850443p16850443.ht... Sent from the XWiki- Dev mailing list archive at Nabble.com.
Problem solved it was related to change I made to group management. I didn't expect any calls to listMemberForGroup to pass a null group name. I just needed to handle the case where null was passed into the method. -- View this message in context: http://www.nabble.com/Error-in-template-editobject.vm-tp16850443p16853892.ht... Sent from the XWiki- Dev mailing list archive at Nabble.com.
glad you solved it, thanks for posting back -Vincent On Apr 25, 2008, at 12:21 AM, Glenn Everitt wrote:
Problem solved it was related to change I made to group management. I didn't expect any calls to listMemberForGroup to pass a null group name. I just needed to handle the case where null was passed into the method.
participants (2)
-
Glenn Everitt -
Vincent Massol