summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2008-04-19 13:42:47 (EDT)
committerEike Stepper2008-04-19 13:42:47 (EDT)
commit928b3c695c7871a86d79f7bb3dc1b09ef56174d1 (patch)
treef46e81aa705d05f39efcbd1ccfd190fbae9fce90
parent0b4bfdd74aed159f8413dde19c7b62e3a17ec003 (diff)
downloadcdo-928b3c695c7871a86d79f7bb3dc1b09ef56174d1.zip
cdo-928b3c695c7871a86d79f7bb3dc1b09ef56174d1.tar.gz
cdo-928b3c695c7871a86d79f7bb3dc1b09ef56174d1.tar.bz2
Exception for unknown adapter name
-rw-r--r--plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/DBStoreFactory.java8
1 files changed, 7 insertions, 1 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 2f92c40..a6b834e 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
@@ -81,7 +81,13 @@ public class DBStoreFactory implements IStoreFactory
Element dbAdapterConfig = (Element)dbAdapterConfigs.item(0);
String dbAdapterName = dbAdapterConfig.getAttribute("name");
- return DBUtil.getDBAdapter(dbAdapterName);
+ IDBAdapter dbAdapter = DBUtil.getDBAdapter(dbAdapterName);
+ if (dbAdapter == null)
+ {
+ throw new IllegalArgumentException("Unknown DB adapter: " + dbAdapterName);
+ }
+
+ return dbAdapter;
}
private DataSource getDataSource(Element storeConfig)