Details

    • Branch Version/s:
      6.1.x, 6.0.x
    • Backported to Branch:
      Committed
    • Similar Issues:
      Show 5 results 

      Description

      if (emailAddress != null) {
      EnterpriseAdminUtil.updateEmailAddresses(Contact.class.getName(), user.getContactId(), emailAddresses);
      }

      The code is checking the emailAddress field not the emailAddresses (plural) and it's causing an NPE.

        Activity

        Hide
        Zsolt Balogh added a comment -

        LIFERAY: 6.0.12
        APP SERVER: tomcat 6.0.32
        DATABASE: MySQL 5
        SELENIUM SCRIPTS TESTED:
        languageTestSuite in porltet.

        I find the use security fix pack. Click language in language portlet. I can find the error message "Language is temporarily unavailable.".

        Console error:

        06:27:42,296 ERROR [render_portlet_jsp:154] java.lang.NullPointerException
        at com.liferay.portlet.enterpriseadmin.util.EnterpriseAdminImpl.updateEmailAddresses(EnterpriseAdminImpl.java:1105)
        at com.liferay.portlet.enterpriseadmin.util.EnterpriseAdminUtil.updateEmailAddresses(EnterpriseAdminUtil.java:270)
        at com.liferay.portal.service.impl.UserServiceImpl.updateUser(UserServiceImpl.java:680)
        at com.liferay.portal.service.impl.UserServiceImpl.updateUser(UserServiceImpl.java:638)
        at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
        at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:86)
        at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:60)
        at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:60)
        at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:60)
        at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:93)
        at com.liferay.portal.service.UserServiceUtil.updateUser(UserServiceUtil.java:376)
        at com.liferay.portlet.admin.util.AdminUtil.updateUser(AdminUtil.java:96)
        at com.liferay.portlet.admin.util.AdminUtil.updateUser(AdminUtil.java:121)
        at com.liferay.portlet.language.action.ViewAction.processAction(ViewAction.java:87)
        at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:174)
        at com.liferay.portlet.StrutsPortlet.processAction(StrutsPortlet.java:190)
        at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:70)
        at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48)
        at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:653)
        at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:689)

        (Stack copied from LPS-26925)

        Show
        Zsolt Balogh added a comment - LIFERAY: 6.0.12 APP SERVER: tomcat 6.0.32 DATABASE: MySQL 5 SELENIUM SCRIPTS TESTED: languageTestSuite in porltet. I find the use security fix pack. Click language in language portlet. I can find the error message "Language is temporarily unavailable.". Console error: 06:27:42,296 ERROR [render_portlet_jsp:154] java.lang.NullPointerException at com.liferay.portlet.enterpriseadmin.util.EnterpriseAdminImpl.updateEmailAddresses(EnterpriseAdminImpl.java:1105) at com.liferay.portlet.enterpriseadmin.util.EnterpriseAdminUtil.updateEmailAddresses(EnterpriseAdminUtil.java:270) at com.liferay.portal.service.impl.UserServiceImpl.updateUser(UserServiceImpl.java:680) at com.liferay.portal.service.impl.UserServiceImpl.updateUser(UserServiceImpl.java:638) at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115) at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:86) at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:60) at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:60) at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:60) at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:93) at com.liferay.portal.service.UserServiceUtil.updateUser(UserServiceUtil.java:376) at com.liferay.portlet.admin.util.AdminUtil.updateUser(AdminUtil.java:96) at com.liferay.portlet.admin.util.AdminUtil.updateUser(AdminUtil.java:121) at com.liferay.portlet.language.action.ViewAction.processAction(ViewAction.java:87) at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:174) at com.liferay.portlet.StrutsPortlet.processAction(StrutsPortlet.java:190) at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:70) at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48) at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:653) at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:689) (Stack copied from LPS-26925)
        Hide
        Michael Saechang added a comment -

        PASSED Manual Testing:

        Fixed on:
        Portal 6.2.x GIT ID: b81677f44da285183ab2aadf626ff7d1cc07f645.

        'UserServiceImpl.java' Before:

        if (emailAddress != null) {
        

        'UserServiceImpl.java' After:

        if (emailAddresses != null) {
        
        Show
        Michael Saechang added a comment - PASSED Manual Testing: Fixed on: Portal 6.2.x GIT ID: b81677f44da285183ab2aadf626ff7d1cc07f645. 'UserServiceImpl.java' Before: if (emailAddress != null ) { 'UserServiceImpl.java' After: if (emailAddresses != null ) {

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 51 weeks, 4 days ago

              Development

                Structure Helper Panel