From 3f1b59e8a014d6c4b7a1318b9d0080dd5c893e93 Mon Sep 17 00:00:00 2001 From: Mateusz Warowny Date: Thu, 30 Sep 2021 17:07:00 +0200 Subject: [PATCH] JAL-3878 Fix null pointer exception when preparing empty sequences for job. --- src/jalview/ws2/operations/AlignmentOperation.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 1.7.10.2