Skip to content

Commit c7e12e1

Browse files
authored
Merge pull request #793 from biocryst/smallfixes
fix for cloning with null seqres groups
2 parents 1beedcb + 463ef0c commit c7e12e1

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
@@ -637,7 +637,9 @@ public List<Group> getSeqResGroups() {
637637
@Override
638638
public void setSeqResGroups(List<Group> groups){
639639
for (Group g: groups){
640-
g.setChain(this);
640+
if (g != null) {
641+
g.setChain(this);
642+
}
641643
}
642644
this.seqResGroups = groups;
643645
}

0 commit comments

Comments
 (0)