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:
0bec485
)
JAL-2135 NPE bugfix when parsing a structure file with Jmol and id & inFile is null
author
tcofoegbu
<tcnofoegbu@dundee.ac.uk>
Tue, 12 Jul 2016 10:03:50 +0000
(11:03 +0100)
committer
tcofoegbu
<tcnofoegbu@dundee.ac.uk>
Tue, 12 Jul 2016 10:03:50 +0000
(11:03 +0100)
src/jalview/ext/jmol/JmolParser.java
patch
|
blob
|
history
diff --git
a/src/jalview/ext/jmol/JmolParser.java
b/src/jalview/ext/jmol/JmolParser.java
index
c514503
..
5effd2e
100644
(file)
--- a/
src/jalview/ext/jmol/JmolParser.java
+++ b/
src/jalview/ext/jmol/JmolParser.java
@@
-172,7
+172,7
@@
public class JmolParser extends StructureFile implements JmolStatusListener
if (getId() == null)
{
- setId(inFile.getName());
+ setId((inFile != null) ? inFile.getName() : safeName(getDataName()));
}
for (PDBChain chain : getChains())
{