From: Jim Procter Date: Sun, 18 Sep 2016 11:43:51 +0000 (+0100) Subject: JAL-1795 JAL-2206 prevent NPE when no data returned from Ensembl fetch X-Git-Tag: Release_2_10_0~20^2~39 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=3e1026e9e2cf5e0be62113d34fc446e6dec5227b;p=jalview.git JAL-1795 JAL-2206 prevent NPE when no data returned from Ensembl fetch --- diff --git a/src/jalview/ext/ensembl/EnsemblGene.java b/src/jalview/ext/ensembl/EnsemblGene.java index 50e1032..0c20e12 100644 --- a/src/jalview/ext/ensembl/EnsemblGene.java +++ b/src/jalview/ext/ensembl/EnsemblGene.java @@ -118,7 +118,10 @@ public class EnsemblGene extends EnsemblSeqProxy * fetch the gene sequence(s) with features and xrefs */ AlignmentI geneAlignment = super.getSequenceRecords(geneId); - + if (geneAlignment == null) + { + continue; + } if (geneAlignment.getHeight() == 1) { getTranscripts(geneAlignment, geneId);