mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Fixed NullPointerException during document delete in Web Client
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2443 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -249,9 +249,12 @@ public class BrowseBean implements IContextListener
|
||||
*/
|
||||
public void setDocument(Node document)
|
||||
{
|
||||
for (NodeEventListener listener : getNodeEventListeners())
|
||||
if (document != null)
|
||||
{
|
||||
listener.created(document, document.getType());
|
||||
for (NodeEventListener listener : getNodeEventListeners())
|
||||
{
|
||||
listener.created(document, document.getType());
|
||||
}
|
||||
}
|
||||
this.document = document;
|
||||
}
|
||||
|
Reference in New Issue
Block a user