Commits

Anonymous committed dfb7e21 Draft

Issue #246046 - NullPointerException at org.netbeans.modules.jira.issue.CommentsPanel.setIssue

Comments (0)

Files changed (1)

jira/src/org/netbeans/modules/jira/issue/CommentsPanel.java

 import org.netbeans.modules.bugtracking.commons.UIUtils;
 import org.netbeans.modules.jira.Jira;
 import org.netbeans.modules.jira.kenai.KenaiRepository;
+import org.netbeans.modules.jira.repository.JiraConfiguration;
 import org.netbeans.modules.team.spi.TeamAccessorUtils;
 import org.openide.util.NbBundle;
 import org.openide.util.RequestProcessor;
             Jira.LOG.log(Level.INFO, null, nfex);
         }
         String description = issue.getFieldValue(NbJiraIssue.IssueField.DESCRIPTION);
-        String reporter = issue.getRepository().getConfiguration().getUser(issue.getFieldValue(NbJiraIssue.IssueField.REPORTER)).getFullName();
+        JiraConfiguration rc = issue.getRepository().getConfiguration();
+        String reporter = rc != null ? rc.getUser(issue.getFieldValue(NbJiraIssue.IssueField.REPORTER)).getFullName() : ""; // NOI18N
         NbJiraIssue.Comment[] comments = issue.getComments();
         this.sections = new ArrayList<>(comments.length);
         sections.add(addSection(