Skip to content
Snippets Groups Projects
Commit 5e830f80 authored by Wolfgang Schmid's avatar Wolfgang Schmid
Browse files

fix for nullpointer: check when closing Protege

parent 89b4d962
No related branches found
No related tags found
1 merge request!10Resolve "Debugger Preferences disappear when invalid values are set"
Pipeline #
......@@ -228,8 +228,10 @@ public abstract class AbstractSolver<F> implements ISolver<F>, Observer {
public void dispose() {
this.formulasCache.clear();
this.negationsCache.clear();
this.diagnosisModel.deleteObserver(this);
this.diagnosisModel = null;
if (diagnosisModel!=null) {
this.diagnosisModel.deleteObserver(this);
this.diagnosisModel = null;
}
}
@Override
......
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