Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-9107

NPE on old content type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.1.9, 4.2.0
    • 4.1.1
    • None
    • None

      In Class ContentTypesHelper : 152 When cTypeId references non existing (anymore) content type.

      private boolean _containsContentType(String[] cTypesId, String cTypeId)
      {
      for (String id : cTypesId)
      {
      ContentType cType = _getContentTypeEP().getExtension(id);
      
      if (ArrayUtils.contains(cType.getSupertypeIds(), cTypeId))
      {
      return true;
      }
      else if (_containsContentType(cType.getSupertypeIds(), cTypeId))
      {
      return true;
      }
      }
      return false;
      }

            Unassigned Unassigned
            dcartier David Cartier-Michaud
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: