Skip to content

Commit 4dcc024

Browse files
committed
null check
1 parent 58eb570 commit 4dcc024

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • biojava-structure/src/main/java/org/biojava/nbio/structure/chem

biojava-structure/src/main/java/org/biojava/nbio/structure/chem/ChemComp.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public String getMonNstdParentCompId() {
149149
}
150150

151151
public void setMonNstdParentCompId(String monNstdParentCompId) {
152-
this.monNstdParentCompId = monNstdParentCompId.isEmpty() ? null : monNstdParentCompId;
152+
this.monNstdParentCompId = (monNstdParentCompId == null || monNstdParentCompId.isEmpty()) ? null : monNstdParentCompId;
153153
setStandardFlag();
154154
}
155155

0 commit comments

Comments
 (0)