fix NPE when no annotation workers present ...
authorjprocter <jprocter@compbio.dundee.ac.uk>
Tue, 8 Nov 2011 11:40:16 +0000 (11:40 +0000)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Tue, 8 Nov 2011 11:40:16 +0000 (11:40 +0000)
src/jalview/workers/AlignCalcManager.java

index 59f8444..63ba828 100644 (file)
@@ -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()))
       {