X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.app.ui%2Fsrc%2Forg%2Fargeo%2Fapp%2Fui%2FSuiteApp.java;fp=org.argeo.app.ui%2Fsrc%2Forg%2Fargeo%2Fapp%2Fui%2FSuiteApp.java;h=4c4f1bb968b1bf8e012575216256c1bbb147d8e9;hb=97055245ef1ad8a2ee9ed8d6e26110ee11b05ea1;hp=e4d40cfa8f77c32a0a8e6f4372c679d368bb870e;hpb=40c75685511b0e72e00ecf99d4216606e2cbf030;p=gpl%2Fargeo-suite.git diff --git a/org.argeo.app.ui/src/org/argeo/app/ui/SuiteApp.java b/org.argeo.app.ui/src/org/argeo/app/ui/SuiteApp.java index e4d40cf..4c4f1bb 100644 --- a/org.argeo.app.ui/src/org/argeo/app/ui/SuiteApp.java +++ b/org.argeo.app.ui/src/org/argeo/app/ui/SuiteApp.java @@ -321,6 +321,7 @@ public class SuiteApp extends AbstractCmsApp implements EventHandler { if (types.size() == 0) throw new IllegalArgumentException("No type found for " + context + " (" + listTypes(context) + ")"); String type = types.iterator().next(); + // FIXME deals with multiple types if (!byType.containsKey(type)) throw new IllegalArgumentException("No component found for " + context + " with type " + type); return byType.get(type).get();