- Fehlende Angabe in ccm-sci-publicpersonalprofile.load

- Fehlerausgabe in ContentTypeHelperImpl verbessert


git-svn-id: https://svn.libreccm.org/ccm/trunk@1000 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2011-07-12 05:50:02 +00:00
parent 8193889af7
commit c3f13c765b
2 changed files with 4 additions and 0 deletions

View File

@ -228,6 +228,9 @@ public class ContentTypeHelperImpl implements ContentTypeHelper {
// Turn on search indexing for this type // Turn on search indexing for this type
ObjectType type = SessionManager.getMetadataRoot().getObjectType( ObjectType type = SessionManager.getMetadataRoot().getObjectType(
m_objectType); m_objectType);
if (type == null) {
throw new IllegalArgumentException(String.format("No object type for '%s'", m_objectType));
}
if (type.isSubtypeOf(ContentPage.BASE_DATA_OBJECT_TYPE) if (type.isSubtypeOf(ContentPage.BASE_DATA_OBJECT_TYPE)
&& !isInternal()) { && !isInternal()) {
s_log.debug("Registering search adapter for " s_log.debug("Registering search adapter for "

View File

@ -16,6 +16,7 @@
<initalizer class="com.arsdigita.cms.contenttypes.SciProjectInitializer"/> <initalizer class="com.arsdigita.cms.contenttypes.SciProjectInitializer"/>
</requires> </requires>
<provides> <provides>
<table name="ct_sci_public_personal_profiles"/>
<initalizer class="com.arsdigita.cms.contenttypes.SciPublicPersonalProfileInizalizer"/> <initalizer class="com.arsdigita.cms.contenttypes.SciPublicPersonalProfileInizalizer"/>
</provides> </provides>
<scripts> <scripts>