/*
* Deregister as a listener, to free references to this object
*/
- if (ap != null)
+ if (ssm != null)
{
- StructureSelectionManager ssm = ap.getStructureSelectionManager();
- if (ssm != null)
- {
- ssm.removeStructureViewerListener(AppVarna.this, null);
- ssm.removeSelectionListener(AppVarna.this);
- }
+ ssm.removeStructureViewerListener(AppVarna.this, null);
+ ssm.removeSelectionListener(AppVarna.this);
}
}