From 5dd96390f4e5694b0dccf6cd33105c7cc237077c Mon Sep 17 00:00:00 2001 From: gmungoc Date: Wed, 4 Oct 2017 11:29:03 +0100 Subject: [PATCH] JAL-2744 handle null features list --- src/jalview/gui/PopupMenu.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 1.7.10.2