summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-07-27 01:29:34 (EDT)
committerEike Stepper2007-07-27 01:29:34 (EDT)
commit84ead4a21a927407fd3d7f02d9d943f74b0e5e21 (patch)
treeae26e4ce17475d22879b0bfe303a771976c4f9db
parent673eefec7599020953404ada882cbf797c9ef3e0 (diff)
downloadcdo-84ead4a21a927407fd3d7f02d9d943f74b0e5e21.zip
cdo-84ead4a21a927407fd3d7f02d9d943f74b0e5e21.tar.gz
cdo-84ead4a21a927407fd3d7f02d9d943f74b0e5e21.tar.bz2
*** empty log message ***
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/FSMUtil.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/FSMUtil.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/FSMUtil.java
index c087b89..a709772 100644
--- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/FSMUtil.java
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/FSMUtil.java
@@ -48,6 +48,16 @@ public final class FSMUtil
public static InternalCDOObject adapt(Object object, CDOView view)
{
+ if (object == null)
+ {
+ throw new IllegalArgumentException("object == null");
+ }
+
+ if (view == null)
+ {
+ throw new IllegalArgumentException("view == null");
+ }
+
if (object instanceof InternalCDOObject)
{
return (InternalCDOObject)object;