Commit a001f866 authored by Petri Hintukainen's avatar Petri Hintukainen

Fix null check

parent e0331bf6
......@@ -239,8 +239,10 @@ public class HScene extends Container implements HComponentOrdering {
}
public synchronized void dispose() {
if (null != BDJXletContext.getCurrentContext())
HSceneFactory.getInstance().dispose(this);
HSceneFactory sf = HSceneFactory.getInstance();
if (sf != null) {
sf.dispose(this);
}
}
protected void disposeImpl()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment