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:
3c51874
)
JAL-1919 JAL-2177 handle empty pdbentries list correctly
features/JAL-2177_update_jmol_to_14.6.4_2016.10.26
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Tue, 22 Nov 2016 15:52:32 +0000
(15:52 +0000)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Tue, 22 Nov 2016 15:52:32 +0000
(15:52 +0000)
src/jalview/appletgui/APopupMenu.java
patch
|
blob
|
history
diff --git
a/src/jalview/appletgui/APopupMenu.java
b/src/jalview/appletgui/APopupMenu.java
index
c30fdad
..
2037ca0
100644
(file)
--- a/
src/jalview/appletgui/APopupMenu.java
+++ b/
src/jalview/appletgui/APopupMenu.java
@@
-892,9
+892,10
@@
public class APopupMenu extends java.awt.PopupMenu implements
void addPDB()
{
- if (seq.getAllPDBEntries() != null)
+ Vector<PDBEntry> pdbs = seq.getAllPDBEntries();
+ if (pdbs != null&& !pdbs.isEmpty())
{
- PDBEntry entry = seq.getAllPDBEntries().firstElement();
+ PDBEntry entry = pdbs.firstElement();
if (ap.av.applet.jmolAvailable)
{