JAL-4470 fix: check for workers!=null before checking its empty...
authorJim Procter <jprocter@dundee.ac.uk>
Fri, 4 Oct 2024 15:03:38 +0000 (16:03 +0100)
committerJim Procter <jprocter@dundee.ac.uk>
Fri, 4 Oct 2024 15:03:59 +0000 (16:03 +0100)
src/jalview/gui/PopupMenu.java

index f4dd579..31e7cbb 100644 (file)
@@ -1779,7 +1779,7 @@ public class PopupMenu extends JPopupMenu implements ColourChangeListener
     List<AlignCalcWorkerI> workers = ap.alignFrame.getViewport()
             .getCalcManager().getRegisteredWorkersOfClass(
                     SecondaryStructureConsensusThread.class);
-    if (!workers.isEmpty())
+    if (workers!=null && !workers.isEmpty())
     {
 
       ap.alignFrame.getViewport().getCalcManager()