JAL-2295 correct test for Float.isNaN(score) !
[jalview.git] / src / jalview / ext / rbvi / chimera / ChimeraCommands.java
index 9ef89fd..3415815 100644 (file)
@@ -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);
         }