Principal sections can have a parent, meaning they can inherit the provider from it

This commit is contained in:
Jaime Martinez Rincon 2017-02-15 15:14:57 +01:00
parent 3ca6a21a31
commit f06f8f0920

View File

@ -103,7 +103,7 @@ public class ServerSection {
e.printStackTrace();
}
} else {
if (principal) {
if (principal && parent == null) {
throw new IllegalArgumentException(String.format("The principal section \"%s\" does not have a provider set", name));
}
}