From 4e9e138ca0eca9f7d3ec77742a6ca21c5ad80d9f Mon Sep 17 00:00:00 2001 From: jprocter Date: Thu, 23 Sep 2010 08:31:10 +0000 Subject: [PATCH] NPE race condition alert - see JAL-661 --- src/jalview/analysis/AAFrequency.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/jalview/analysis/AAFrequency.java b/src/jalview/analysis/AAFrequency.java index 4bff6ef..31cb7ad 100755 --- a/src/jalview/analysis/AAFrequency.java +++ b/src/jalview/analysis/AAFrequency.java @@ -105,6 +105,11 @@ public class AAFrequency for (j = 0; j < jSize; j++) { + if (sequences[j]==null) + { + System.err.println("WARNING: Consensus skipping null sequence - possible race condition."); + continue; + } seq = sequences[j].getSequence(); if (seq.length > i) { -- 1.7.10.2