From b8790847f686f6d31d2098c6b9804f8acc1041c9 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Mon, 14 May 2018 09:17:37 +0100 Subject: [PATCH] JAL-2939 check for hmm present when processing groups --- src/jalview/workers/InformationThread.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/jalview/workers/InformationThread.java b/src/jalview/workers/InformationThread.java index d719189..d35025b 100644 --- a/src/jalview/workers/InformationThread.java +++ b/src/jalview/workers/InformationThread.java @@ -212,10 +212,13 @@ public class InformationThread extends AlignCalcWorker for (SequenceGroup group : alignment.getGroups()) { hmmSeqs = group.getHmmSequences(); - ProfilesI profiles = group.getHmmProfiles(); - float m = updateInformationAnnotation(hmmSeqs.get(0), profiles, group, - infos); - maxInformation = Math.max(maxInformation, m); + if (!hmmSeqs.isEmpty()) + { + ProfilesI profiles = group.getHmmProfiles(); + float m = updateInformationAnnotation(hmmSeqs.get(0), profiles, + group, infos); + maxInformation = Math.max(maxInformation, m); + } } /* -- 1.7.10.2