From: Jim Procter Date: Tue, 16 Aug 2016 14:30:40 +0000 (+0100) Subject: JAL-2154 check alignment isn’t null before validating X-Git-Tag: Release_2_10_0~47^2~4^2~43^2~41 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=44c7ef22fc8e06469384f0d878683ce0e8615b11;p=jalview.git JAL-2154 check alignment isn’t null before validating --- diff --git a/test/jalview/datamodel/AlignmentTest.java b/test/jalview/datamodel/AlignmentTest.java index 09645fd..d3525a5 100644 --- a/test/jalview/datamodel/AlignmentTest.java +++ b/test/jalview/datamodel/AlignmentTest.java @@ -115,6 +115,14 @@ public class AlignmentTest public static boolean verifyAlignmentDatasetRefs(AlignmentI alignment, boolean raiseAssert) { + if (alignment == null) + { + if (raiseAssert) + { + Assert.fail("Alignment for verification was null."); + } + return false; + } if (alignment.getDataset() != null) { AlignmentI dataset = alignment.getDataset();