Throw exception in init() when rootPrototype or userPrototype does not exist.

This commit is contained in:
hns 2005-05-13 15:33:01 +00:00
parent 525739eaa5
commit 3c8f9f8890

View file

@ -362,7 +362,11 @@ public final class Application implements IPathElement, Runnable {
userPrototype = props.getProperty("userprototype", "user");
rootMapping = getDbMapping(rootPrototype);
if (rootMapping == null)
throw new RuntimeException("rootPrototype does not exist: " + rootPrototype);
userMapping = getDbMapping(userPrototype);
if (userMapping == null)
throw new RuntimeException("userPrototype does not exist: " + userPrototype);
// The whole user/userroot handling is basically old
// ugly obsolete crap. Don't bother.