defined classId for TextType (avoid NPE for missing classId)