Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Taal2012-11-27 19:57:30 +0000
committerMartin Taal2012-11-27 19:57:30 +0000
commit982a12efa701c21fa4048fd0196b8d9a17a5cb33 (patch)
tree5d59392cf8dfa5a3c4e7c271a72187b7f7b03eec
parent2bdf2212a95671b5f86dc5fb877dbe1a59daf466 (diff)
downloadcdo-982a12efa701c21fa4048fd0196b8d9a17a5cb33.tar.gz
cdo-982a12efa701c21fa4048fd0196b8d9a17a5cb33.tar.xz
cdo-982a12efa701c21fa4048fd0196b8d9a17a5cb33.zip
Hibernate: Prevent NPE in CDOEnumIntegerType
-rw-r--r--plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOENumIntegerType.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOENumIntegerType.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOENumIntegerType.java
index c8654894ba..1816d16fd0 100644
--- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOENumIntegerType.java
+++ b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOENumIntegerType.java
@@ -73,8 +73,7 @@ public class CDOENumIntegerType extends CDOENumStringType
{
st.setNull(index, Types.INTEGER);
}
-
- if (value instanceof Integer)
+ else if (value instanceof Integer)
{
st.setInt(index, (Integer)value);
}

Back to the top