diff --git a/src/main/java/org/gcube/common/storagehub/model/items/Item.java b/src/main/java/org/gcube/common/storagehub/model/items/Item.java index c95b5bd..72eeca4 100644 --- a/src/main/java/org/gcube/common/storagehub/model/items/Item.java +++ b/src/main/java/org/gcube/common/storagehub/model/items/Item.java @@ -76,7 +76,7 @@ public class Item { public String getOwner() { if (owner!=null) return owner; - else if (ownerNode!=null) ownerNode.getUserName(); + else if (ownerNode!=null) return ownerNode.getUserName(); return null; }