summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2008-04-19 13:44:12 (EDT)
committerEike Stepper2008-04-19 13:44:12 (EDT)
commit45cb2efcd82a4a81e01c47f5ac14cd6818560976 (patch)
tree24b7a7fb08f117169c250b5817faf9980cf47832
parent928b3c695c7871a86d79f7bb3dc1b09ef56174d1 (diff)
downloadcdo-45cb2efcd82a4a81e01c47f5ac14cd6818560976.zip
cdo-45cb2efcd82a4a81e01c47f5ac14cd6818560976.tar.gz
cdo-45cb2efcd82a4a81e01c47f5ac14cd6818560976.tar.bz2
Exception for unknown mapping strategy
-rw-r--r--plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/DBStoreFactory.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/DBStoreFactory.java b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/DBStoreFactory.java
index a6b834e..291ecdb 100644
--- a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/DBStoreFactory.java
+++ b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/DBStoreFactory.java
@@ -66,6 +66,11 @@ public class DBStoreFactory implements IStoreFactory
Element mappingStrategyConfig = (Element)mappingStrategyConfigs.item(0);
String mappingStrategyType = mappingStrategyConfig.getAttribute("type");
IMappingStrategy mappingStrategy = CDODBUtil.createMappingStrategy(mappingStrategyType);
+ if (mappingStrategy == null)
+ {
+ throw new IllegalArgumentException("Unknown mapping strategy: " + mappingStrategyType);
+ }
+
Map<String, String> properties = RepositoryConfigurator.getProperties(mappingStrategyConfig, 1);
mappingStrategy.setProperties(properties);
return mappingStrategy;