Skip to content

Commit b2555f6

Browse files
committed
Small fix for cloning
1 parent 4452bdc commit b2555f6

File tree

1 file changed

+3
-1
lines changed
  • biojava-structure/src/main/java/org/biojava/nbio/structure

1 file changed

+3
-1
lines changed

biojava-structure/src/main/java/org/biojava/nbio/structure/ChainImpl.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,10 @@ public Object clone() {
187187

188188
for (Group seqResGroup : seqResGroups) {
189189

190-
if (seqResGroup==null)
190+
if (seqResGroup==null) {
191+
tmpSeqRes.add(null);
191192
continue;
193+
}
192194

193195
int i = groups.indexOf(seqResGroup);
194196

0 commit comments

Comments
 (0)