From 0b9aedff7e1f20ce97b87716b19aed6bc20636a9 Mon Sep 17 00:00:00 2001 From: slapshot5 Date: Wed, 14 Dec 2011 04:05:48 +0000 Subject: [PATCH] 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. --- src/main/java/forge/error/BugzReporter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/forge/error/BugzReporter.java b/src/main/java/forge/error/BugzReporter.java index dbd623d6f2f..fa20016f689 100644 --- a/src/main/java/forge/error/BugzReporter.java +++ b/src/main/java/forge/error/BugzReporter.java @@ -333,7 +333,7 @@ public class BugzReporter extends JDialog { this.cboSeverity.setBounds(90, 493, 160, 22); this.cboSeverity.setFont(new Font("Dialog", Font.BOLD, 10)); this.cboSeverity.addItem(""); - if (this.severities.length > 0) { + if (this.severities != null && this.severities.length > 0) { for (final IMCAttribute severitie : this.severities) { this.cboSeverity.addItem(severitie.getName()); }