Uploaded image for project: 'PUBLIC - Liferay Commerce'
  1. PUBLIC - Liferay Commerce
  2. COMMERCE-3476

Minium Account Management breaks if buyer user, member of a deactivated account, accesses it

    Details

      Description

      ASSUMPTION

      • Minium Site created;
      • Account created;
      • User created, member of Minium and the account, with buyer role

      STEPS

      1. As omniadmin, go to Minium's Account Management;
      2. Deactivate the account which the buyer user belongs to;
      3. Log out;
      4. Log in as buyer user;
      5. Go to Minium;
      6. Click the Account Management icon

      EXPECTED RESULT
      The widget does not contain any information (i.e. an empty widget, no error message)
      No errors in the log

      ACTUAL RESULT
      The widget is empty but the following error is thrown by the log:

      ERROR [http-nio-8080-exec-7][IncludeTag:128] Current URL /group/minium/account-management generates exception: java.lang.NullPointerException
      java.lang.NullPointerException
      	at org.apache.jsp.view_005fuser_jsp._jspService(view_005fuser_jsp.java:281)
      	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
      	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
      	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
      	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
      	at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:369)
      	at com.liferay.portal.osgi.web.servlet.jsp.compiler.internal.JspServlet.service(JspServlet.java:380)
      	at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153)
      	at org.eclipse.equinox.http.servlet.internal.servlet.ResponseStateHandler.processRequest(ResponseStateHandler.java:62)
      	at org.eclipse.equinox.http.servlet.internal.context.DispatchTargets.doDispatch(DispatchTargets.java:120)
      	at org.eclipse.equinox.http.servlet.internal.servlet.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:48)
      	at com.liferay.portal.servlet.DirectServletPathRegisterDispatcher.include(DirectServletPathRegisterDispatcher.java:67)
      	at com.liferay.portal.servlet.DirectRequestDispatcherFactoryImpl$IndirectRequestDispatcher.include(DirectRequestDispatcherFactoryImpl.java:202)
      	at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:79)
      	at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:53)
      	at com.liferay.taglib.util.IncludeTag.includePage(IncludeTag.java:393)
      	at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:370)
      	at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:215)
      
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pietro.bocale Pietro Bocale
              Reporter:
              alessandro.iovane Alessandro Iovane
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  2.1.1
                  4.0.0 CE GA1