From: gmungoc Date: Mon, 14 May 2018 08:17:37 +0000 (+0100) Subject: JAL-2939 check for hmm present when processing groups X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=b8790847f686f6d31d2098c6b9804f8acc1041c9;p=jalview.git JAL-2939 check for hmm present when processing groups --- 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); + } } /*