git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
839b67d
)
JAL-4470 fix: check for workers!=null before checking its empty...
author
Jim Procter
<jprocter@dundee.ac.uk>
Fri, 4 Oct 2024 15:03:38 +0000
(16:03 +0100)
committer
Jim Procter
<jprocter@dundee.ac.uk>
Fri, 4 Oct 2024 15:03:59 +0000
(16:03 +0100)
src/jalview/gui/PopupMenu.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/PopupMenu.java
b/src/jalview/gui/PopupMenu.java
index
f4dd579
..
31e7cbb
100644
(file)
--- a/
src/jalview/gui/PopupMenu.java
+++ b/
src/jalview/gui/PopupMenu.java
@@
-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()