From e72a3c4472341f9ea8122df7604504297f8d8323 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Wed, 9 Jan 2019 15:51:57 +0000 Subject: [PATCH] JAL-3032 refine 'empty status message' test (JS issue 179) --- src/jalview/gui/AlignFrame.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index 8f7b61b..340f9be 100644 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -997,7 +997,7 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener, // In JavaScript, we use \u00A0 -- unicode "non-breaking space" // which is the unicode encoding of   - statusBar.setText(text.length() == 0 ? " " : text); + statusBar.setText(text == null || text.isEmpty() ? " " : text); } /* -- 1.7.10.2