mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +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)
|
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;
|
this.document = document;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user