Skip to content
Snippets Groups Projects
Commit 1f15718c authored by Carsten Stocklöw's avatar Carsten Stocklöw
Browse files

fix for fetch object

parent 8fea19c3
No related branches found
No related tags found
No related merge requests found
......@@ -28,10 +28,15 @@ public class SpaceListener implements AALSpaceListener, Runnable,
public void start() {
// get AAL Space Manager to register this listener
Object o = Activator.mc.getContainer().fetchSharedObject(Activator.mc,
new Object[] { AALSpaceManager.class.getName() }, this);
if (o instanceof AALSpaceManager) {
sharedObjectAdded(o, null);
Object[] o = Activator.mc.getContainer().fetchSharedObject(
Activator.mc, new Object[] { AALSpaceManager.class.getName() },
this);
if (o != null) {
if (o.length != 0) {
if (o[0] instanceof AALSpaceManager) {
sharedObjectAdded(o[0], null);
}
}
}
}
......
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