From 8f899b7c0fe8a51c7e10ee522a8d8d1f1719190b Mon Sep 17 00:00:00 2001 From: jprocter Date: Tue, 8 Nov 2011 11:40:16 +0000 Subject: [PATCH] fix NPE when no annotation workers present ... --- src/jalview/workers/AlignCalcManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jalview/workers/AlignCalcManager.java b/src/jalview/workers/AlignCalcManager.java index 59f8444..63ba828 100644 --- a/src/jalview/workers/AlignCalcManager.java +++ b/src/jalview/workers/AlignCalcManager.java @@ -151,7 +151,7 @@ public class AlignCalcManager implements AlignCalcManagerI @Override public void updateAnnotationFor(Class workerClass) { - for (AlignCalcWorkerI worker:canUpdate.toArray(new AlignCalcWorkerI[1])) + for (AlignCalcWorkerI worker:canUpdate.toArray(new AlignCalcWorkerI[0])) { if (workerClass.equals(worker.getClass())) { -- 1.7.10.2