Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
7.0.0 Beta 8
-
1
-
3
-
Sprint 14: Apr, 04 - Apr, 15
Description
liferay-workflow-definition_7_0_0.xsd declares the <role-type /> tag is optional, minOccurs=0 and the default role type is "regular".
If the tag is left out of the workflow XML file, though, an NPE is thrown:
17:57:13,350 ERROR [http-apr-8080-exec-6][render_portlet_jsp:131] null
java.lang.NullPointerException
at com.liferay.portal.workflow.kaleo.runtime.util.RoleUtil.getRoleType(RoleUtil.java:86)
at com.liferay.portal.workflow.kaleo.service.impl.KaleoNotificationRecipientLocalServiceImpl.setRecipient(KaleoNotificationRecipientLocalServiceImpl.java:121)
at com.liferay.portal.workflow.kaleo.service.impl.KaleoNotificationRecipientLocalServiceImpl.addKaleoNotificationRecipient(KaleoNotificationRecipientLocalServiceImpl.java:68)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:153)
at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:85)
at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:58)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127)
at com.liferay.portal.service.ServiceContextAdvice.invoke(ServiceContextAdvice.java:40)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127)
at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:173)
at com.liferay.portal.workflow.kaleo.service.impl.KaleoNotificationLocalServiceImpl.addKaleoNotification(KaleoNotificationLocalServiceImpl.java:100)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:153)
at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:85)
at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:58)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127)
at com.liferay.portal.service.ServiceContextAdvice.invoke(ServiceContextAdvice.java:40)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)