Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-20227

NPE from null user in bulk mail

    XMLWordPrintable

Details

    Description

      When a user membership references a deleted user, an NPE is thrown from SendBulkMail.deExecute. This is most likely due to a direct database operation, or a name changed through an XML backup.

      Source of NPE, from UserUtilImpl:

          private List<User> getUsersByName(final List<String> userNames)
          {
              final List<User> users = new ArrayList<User>(userNames.size());
              for (final String userName : userNames)
              {
                  users.add(getUser(userName));
              }
              return users;
          }
      

      Related stacktrace:

      java.lang.NullPointerException
      at com.atlassian.jira.web.action.admin.mail.SendBulkMail.doExecute(SendBulkMail.java:214)
      at webwork.action.ActionSupport.execute(ActionSupport.java:153)
      ...
      

      Attachments

        Activity

          People

            chris@atlassian.com Chris Mountford
            jlargman Jeremy Largman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: