Improve DocBook support.
[gpl/argeo-suite.git] / org.argeo.suite.core / src / org / argeo / suite / core / SuiteTermsManager.java
index 3c5a59fa42c5425820340017bc0ece5b2ccab93d..1362f946abf61caf3b278d55e7da363772f98d19 100644 (file)
@@ -46,6 +46,8 @@ public class SuiteTermsManager implements TermsManager {
                if (t == null) {
                        Node termsNode = Jcr.getNode(adminSession, "SELECT * FROM [{0}] WHERE NAME()=\"{1}\"",
                                        EntityType.terms.get(), typology);
+                       if (termsNode == null)
+                               throw new IllegalArgumentException("Typology " + typology + " not found.");
                        t = loadTypology(termsNode);
                }
                return t;