JAL-3878 Fix null pointer exception when preparing empty sequences for job.
authorMateusz Warowny <mmzwarowny@dundee.ac.uk>
Thu, 30 Sep 2021 15:07:00 +0000 (17:07 +0200)
committerMateusz Warowny <mmzwarowny@dundee.ac.uk>
Thu, 30 Sep 2021 15:07:29 +0000 (17:07 +0200)
src/jalview/ws2/operations/AlignmentOperation.java

index 14564d6..530ea24 100644 (file)
@@ -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)