Skip to content

Commit 48cb462

Browse files
Update biojava-structure/src/main/java/org/biojava/nbio/structure/io/cif/CifStructureConsumerImpl.java
Co-authored-by: Sebastian Bittrich <sebastian.bittrich@rcsb.org>
1 parent 2841770 commit 48cb462

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,8 +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().isDefined()? structRefSeqDif.getPdbxPdbStrandId().get(rowIndex) : null;
1315-
if (strandId == null) continue;
1314+
if (!structRefSeqDif.getPdbxPdbStrandId().isDefined()) continue;
1315+
String strandId = structRefSeqDif.getPdbxPdbStrandId().get(rowIndex);
13161316
List<SeqMisMatch> seqMisMatches = misMatchMap.computeIfAbsent(strandId, k -> new ArrayList<>());
13171317
seqMisMatches.add(seqMisMatch);
13181318
}

0 commit comments

Comments
 (0)