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

          Form Name

            [CONFSERVER-79612] Fix NPE in ViewUserAction with Struts

            A fix for this issue is available in Confluence Server and Data Center 8.0.0.
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            James Whitehead added a comment - A fix for this issue is available in Confluence Server and Data Center 8.0.0. Upgrade now or check out the Release Notes to see what other issues are resolved.

            Fixed by updating any static method calls in struts.xml to a non-static action available wrapper method.

            Ganesh Gautam added a comment - Fixed by updating any static method calls in struts.xml to a non-static action available wrapper method.

              qpham@atlassian.com Quan Pham
              ggautam Ganesh Gautam
              Affected customers:
              0 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: