Skip to content

Commit 2841770

Browse files
committed
Deal with missing strand_id
1 parent fdf9864 commit 2841770

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

biojava-structure/src/main/java/org/biojava/nbio/structure/io/cif/CifStructureConsumerImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1311,7 +1311,8 @@ public void finish() {
13111311
seqMisMatch.setUniProtId(structRefSeqDif.getPdbxSeqDbAccessionCode().isDefined()? structRefSeqDif.getPdbxSeqDbAccessionCode().get(rowIndex):null);
13121312
seqMisMatch.setSeqNum(structRefSeqDif.getSeqNum().get(rowIndex));
13131313

1314-
String strandId = structRefSeqDif.getPdbxPdbStrandId().get(rowIndex);
1314+
String strandId = structRefSeqDif.getPdbxPdbStrandId().isDefined()? structRefSeqDif.getPdbxPdbStrandId().get(rowIndex) : null;
1315+
if (strandId == null) continue;
13151316
List<SeqMisMatch> seqMisMatches = misMatchMap.computeIfAbsent(strandId, k -> new ArrayList<>());
13161317
seqMisMatches.add(seqMisMatch);
13171318
}

0 commit comments

Comments
 (0)