mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
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:
@@ -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());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user