add a null check in the BugzReporter. (Probably should do more checking if it can't connect to the website.) This fixes an immediate crash though.

This commit is contained in:
slapshot5
2011-12-14 04:05:48 +00:00
parent f4c7e7a520
commit 0b9aedff7e

View File

@@ -333,7 +333,7 @@ public class BugzReporter extends JDialog {
this.cboSeverity.setBounds(90, 493, 160, 22); this.cboSeverity.setBounds(90, 493, 160, 22);
this.cboSeverity.setFont(new Font("Dialog", Font.BOLD, 10)); this.cboSeverity.setFont(new Font("Dialog", Font.BOLD, 10));
this.cboSeverity.addItem(""); this.cboSeverity.addItem("");
if (this.severities.length > 0) { if (this.severities != null && this.severities.length > 0) {
for (final IMCAttribute severitie : this.severities) { for (final IMCAttribute severitie : this.severities) {
this.cboSeverity.addItem(severitie.getName()); this.cboSeverity.addItem(severitie.getName());
} }