From: jprocter Date: Tue, 8 Nov 2011 11:40:16 +0000 (+0000) Subject: fix NPE when no annotation workers present ... X-Git-Tag: Jalview_2_9~557^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=8f899b7c0fe8a51c7e10ee522a8d8d1f1719190b;p=jalview.git fix NPE when no annotation workers present ... --- 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())) {