Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-79612

Fix NPE in ViewUserAction with Struts

    XMLWordPrintable

Details

    Description

      Issue Summary

      NPE in ViewUserAction with Struts

      Steps to Reproduce

      Hit View user action
      /confluence/admin/users/viewuser.action

      Expected Results

      No exception

      Actual Results

      The below exception is thrown in the xxxxxxx.log file:

      2022-08-02 08:19:18,393 ERROR [http-nio-8080-exec-10] [apache.struts2.dispatcher.DefaultDispatcherErrorHandler] sendErrorResponse Exception occurred during processing request: null
       -- url: /confluence/admin/users/viewuser.action | userName: admin | referer: http://localhost:8080/confluence/admin/users/viewuser.action?username=60255c59-4952-45 | traceId: 9dd20d65f4d4046b
      java.lang.NullPointerException
          at com.atlassian.confluence.user.actions.ViewUserAction.execute(ViewUserAction.java:56)
          at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

      Attachments

        Issue Links

          Activity

            People

              qpham@atlassian.com Quan Pham
              ggautam Ganesh Gautam
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: