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

NPE when adding an smtp mail server

XMLWordPrintable

      JIRA (v6.2-rc1#6252-sha1:c8fda5e) , with no mail servers configured, adding one results in a NPE in a comparator

      java.lang.NullPointerException
      java.lang.NullPointerException
      	at com.atlassian.jira.plugins.mail.webwork.AddSmtpMailServer$1.compare(AddSmtpMailServer.java:46)
      	at com.atlassian.jira.plugins.mail.webwork.AddSmtpMailServer$1.compare(AddSmtpMailServer.java:42)
      	at java.util.TreeMap.put(TreeMap.java:530)
      	at java.util.TreeSet.add(TreeSet.java:238)
      	at java.util.AbstractCollection.addAll(AbstractCollection.java:305)
      	at java.util.TreeSet.addAll(TreeSet.java:295)
      	at com.atlassian.jira.plugins.mail.webwork.AddSmtpMailServer.doDefault(AddSmtpMailServer.java:52)
      

              bbain bain
              340ad212567f Andy Brook [Plugin People]
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: