From: gmungoc Date: Fri, 11 Nov 2016 08:50:02 +0000 (+0000) Subject: JAL-2295 correct test for Float.isNaN(score) ! X-Git-Tag: Release_2_11_0~62^2~62 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=3634aa61b96d7ce541c4abb83502fc67d72e3f27;p=jalview.git JAL-2295 correct test for Float.isNaN(score) ! --- diff --git a/src/jalview/ext/rbvi/chimera/ChimeraCommands.java b/src/jalview/ext/rbvi/chimera/ChimeraCommands.java index 9ef89fd..3415815 100644 --- a/src/jalview/ext/rbvi/chimera/ChimeraCommands.java +++ b/src/jalview/ext/rbvi/chimera/ChimeraCommands.java @@ -415,7 +415,7 @@ public class ChimeraCommands value = type; } float score = sf.getScore(); - if (score != 0f && score != Float.NaN) + if (score != 0f && !Float.isNaN(score)) { value = Float.toString(score); }