diff --git a/src/main/java/org/esupportail/portlet/filemanager/services/cifs/CifsAccessImpl.java b/src/main/java/org/esupportail/portlet/filemanager/services/cifs/CifsAccessImpl.java index e4a798d..6723f6e 100644 --- a/src/main/java/org/esupportail/portlet/filemanager/services/cifs/CifsAccessImpl.java +++ b/src/main/java/org/esupportail/portlet/filemanager/services/cifs/CifsAccessImpl.java @@ -258,11 +258,13 @@ private JsTreeFile resourceAsJsTreeFile(SmbFile resource, SharedUserPortletParam if (!resourceWritable) { try { ACE[] ACEs = resource.getSecurity(); - for(ACE ace: ACEs) { - if (this.userAuthenticator.getUsername().equals(ace.getSID().getAccountName())) { - if ((ace.getAccessMask() & ACE.FILE_WRITE_DATA)!=0) { - resourceWritable = true; - break; + if (ACEs != null) { + for (ACE ace : ACEs) { + if (this.userAuthenticator.getUsername().equals(ace.getSID().getAccountName())) { + if ((ace.getAccessMask() & ACE.FILE_WRITE_DATA) != 0) { + resourceWritable = true; + break; + } } } }