You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@polygene.apache.org by ni...@apache.org on 2015/04/17 18:05:36 UTC

[16/50] [abbrv] zest-qi4j git commit: core-api: ensure EntityReference cannot be created with null value

core-api: ensure EntityReference cannot be created with null value


Project: http://git-wip-us.apache.org/repos/asf/zest-qi4j/repo
Commit: http://git-wip-us.apache.org/repos/asf/zest-qi4j/commit/761d7f16
Tree: http://git-wip-us.apache.org/repos/asf/zest-qi4j/tree/761d7f16
Diff: http://git-wip-us.apache.org/repos/asf/zest-qi4j/diff/761d7f16

Branch: refs/heads/master
Commit: 761d7f160477b79f1672c161876c1495289c9755
Parents: e2ea757
Author: Paul Merlin <pa...@nosphere.org>
Authored: Wed Feb 13 11:52:26 2013 +0100
Committer: Paul Merlin <pa...@nosphere.org>
Committed: Wed Feb 13 11:52:26 2013 +0100

----------------------------------------------------------------------
 core/api/src/main/java/org/qi4j/api/entity/EntityReference.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zest-qi4j/blob/761d7f16/core/api/src/main/java/org/qi4j/api/entity/EntityReference.java
----------------------------------------------------------------------
diff --git a/core/api/src/main/java/org/qi4j/api/entity/EntityReference.java b/core/api/src/main/java/org/qi4j/api/entity/EntityReference.java
index 625f019..0a4a14a 100644
--- a/core/api/src/main/java/org/qi4j/api/entity/EntityReference.java
+++ b/core/api/src/main/java/org/qi4j/api/entity/EntityReference.java
@@ -15,6 +15,7 @@
 package org.qi4j.api.entity;
 
 import java.io.Serializable;
+import org.qi4j.api.util.NullArgumentException;
 
 /**
  * An EntityReference is identity of a specific
@@ -53,6 +54,7 @@ public final class EntityReference
 
     public EntityReference( String identity )
     {
+        NullArgumentException.validateNotEmpty( "identity", identity );
         this.identity = identity;
     }