Skip to content
Snippets Groups Projects
Commit 10c26ff5 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

check against nulls added

parent a7bc583f
No related branches found
No related tags found
1 merge request!978Resolve "species states size and position"
...@@ -182,7 +182,9 @@ public class Complex extends Species { ...@@ -182,7 +182,9 @@ public class Complex extends Species {
public void setStructuralState(StructuralState structuralState) { public void setStructuralState(StructuralState structuralState) {
this.structuralState = structuralState; this.structuralState = structuralState;
structuralState.setSpecies(this); if (structuralState != null) {
structuralState.setSpecies(this);
}
} }
} }
...@@ -119,7 +119,9 @@ public abstract class Protein extends Species implements SpeciesWithBindingRegio ...@@ -119,7 +119,9 @@ public abstract class Protein extends Species implements SpeciesWithBindingRegio
public void setStructuralState(StructuralState structuralState) { public void setStructuralState(StructuralState structuralState) {
this.structuralState = structuralState; this.structuralState = structuralState;
structuralState.setSpecies(this); if (structuralState != null) {
structuralState.setSpecies(this);
}
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment