From 3634aa61b96d7ce541c4abb83502fc67d72e3f27 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Fri, 11 Nov 2016 08:50:02 +0000 Subject: [PATCH] JAL-2295 correct test for Float.isNaN(score) ! --- src/jalview/ext/rbvi/chimera/ChimeraCommands.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 1.7.10.2