JAL-1819 use Float.isNaN() to check for NaNs!
[jalview.git] / src / jalview / io / SequenceAnnotationReport.java
index 7c96d45..6d8ce5f 100644 (file)
@@ -152,7 +152,7 @@ public class SequenceAnnotationReport
               }
             }
             // check score should be shown
-            if (feature.getScore() != Float.NaN)
+            if (!Float.isNaN(feature.getScore()))
             {
               float[][] rng = (minmax == null) ? null : ((float[][]) minmax
                       .get(feature.getType()));