From: Mateusz Warowny Date: Thu, 30 Sep 2021 15:07:00 +0000 (+0200) Subject: JAL-3878 Fix null pointer exception when preparing empty sequences for job. X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=3f1b59e8a014d6c4b7a1318b9d0080dd5c893e93;p=jalview.git JAL-3878 Fix null pointer exception when preparing empty sequences for job. --- diff --git a/src/jalview/ws2/operations/AlignmentOperation.java b/src/jalview/ws2/operations/AlignmentOperation.java index 14564d6..530ea24 100644 --- a/src/jalview/ws2/operations/AlignmentOperation.java +++ b/src/jalview/ws2/operations/AlignmentOperation.java @@ -789,8 +789,8 @@ public class AlignmentOperation implements Operation } else { - String seqString = null; - if (seq.getEnd() >= seq.getStart()) // is it ever false? + String seqString = ""; + if (seq.getEnd() >= seq.getStart()) // true if gaps only { seqString = seq.getSequenceAsString(); if (!submitGaps)