From: gmungoc Date: Wed, 4 Oct 2017 10:29:03 +0000 (+0100) Subject: JAL-2744 handle null features list X-Git-Tag: Release_2_11_0~212 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=5dd96390f4e5694b0dccf6cd33105c7cc237077c;p=jalview.git JAL-2744 handle null features list --- diff --git a/src/jalview/gui/PopupMenu.java b/src/jalview/gui/PopupMenu.java index b574ddd..8e9bade 100644 --- a/src/jalview/gui/PopupMenu.java +++ b/src/jalview/gui/PopupMenu.java @@ -528,7 +528,7 @@ public class PopupMenu extends JPopupMenu implements ColourChangeListener */ protected void addFeatureDetails(List features) { - if (features.isEmpty()) + if (features == null || features.isEmpty()) { return; }