. Fix to make sure ActionSpace as null is not passed to NodeEventListeners (as per Derek's last checkin for document)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2444 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2006-02-18 17:05:33 +00:00
parent 372d580cce
commit ed1d92b0eb

View File

@@ -229,9 +229,12 @@ public class BrowseBean implements IContextListener
*/
public void setActionSpace(Node actionSpace)
{
for (NodeEventListener listener : getNodeEventListeners())
if (actionSpace != null)
{
listener.created(actionSpace, actionSpace.getType());
for (NodeEventListener listener : getNodeEventListeners())
{
listener.created(actionSpace, actionSpace.getType());
}
}
this.actionSpace = actionSpace;
}