From: gmungoc Date: Wed, 9 Jan 2019 15:51:57 +0000 (+0000) Subject: JAL-3032 refine 'empty status message' test (JS issue 179) X-Git-Tag: Release_2_11_4_0~45^2~18^2~320^2~2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=e72a3c4472341f9ea8122df7604504297f8d8323;p=jalview.git JAL-3032 refine 'empty status message' test (JS issue 179) --- 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); } /*