projects
/
lgpl
/
argeo-commons.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Improve workgroups and JCR file system.
[lgpl/argeo-commons.git]
/
org.argeo.jcr
/
src
/
org
/
argeo
/
jcr
/
fs
/
JcrBasicfileAttributes.java
diff --git
a/org.argeo.jcr/src/org/argeo/jcr/fs/JcrBasicfileAttributes.java
b/org.argeo.jcr/src/org/argeo/jcr/fs/JcrBasicfileAttributes.java
index 7ce9ca6674e4d3cff9e7d5241fcb8652b9d821d8..92d9152d9231c1f043d5d21bcdf71319b6b86e29 100644
(file)
--- a/
org.argeo.jcr/src/org/argeo/jcr/fs/JcrBasicfileAttributes.java
+++ b/
org.argeo.jcr/src/org/argeo/jcr/fs/JcrBasicfileAttributes.java
@@
-17,6
+17,8
@@
public class JcrBasicfileAttributes implements NodeFileAttributes {
private FileTime EPOCH = FileTime.fromMillis(0);
public JcrBasicfileAttributes(Node node) {
+ if (node == null)
+ throw new JcrFsException("Node underlying the attributes cannot be null");
this.node = node;
}