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:
48635c9
)
exception checks for (de)uniquify
author
jprocter
<Jim Procter>
Thu, 8 Dec 2005 14:08:22 +0000
(14:08 +0000)
committer
jprocter
<Jim Procter>
Thu, 8 Dec 2005 14:08:22 +0000
(14:08 +0000)
src/jalview/analysis/SeqsetUtils.java
patch
|
blob
|
history
diff --git
a/src/jalview/analysis/SeqsetUtils.java
b/src/jalview/analysis/SeqsetUtils.java
index
4432414
..
40869c2
100755
(executable)
--- a/
src/jalview/analysis/SeqsetUtils.java
+++ b/
src/jalview/analysis/SeqsetUtils.java
@@
-66,6
+66,8
@@
public class SeqsetUtils
public static boolean SeqCharacterUnhash(SequenceI sq, Hashtable sqinfo)
\r
{
\r
boolean namePresent = true;
\r
+ if (sqinfo==null)
\r
+ return false;
\r
String oldname = (String) sqinfo.get("Name");
\r
Integer start = (Integer) sqinfo.get("Start");
\r
Integer end = (Integer) sqinfo.get("End");
\r
@@
-81,8
+83,7
@@
public class SeqsetUtils
{
\r
sq.setName(oldname);
\r
}
\r
-
\r
- if (!pdbid.equals(""))
\r
+ if (pdbid!=null && pdbid.size()>0)
\r
{
\r
sq.setPDBId(pdbid);
\r
}
\r