Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-825

Empty string as parameter for setDefaultPrimaryTypeName() or setPrimaryItemName() causes IllegalArgumentException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.1.0.Final
    • 2.0.0.Final
    • JCR
    • None

      When you pass empty String as a parameter to org.modeshape.jcr.JcrNodeTypeTemplate.setPrimaryItemName(String) or org.modeshape.jcr.JcrNodeDefinitionTemplate.setDefaultPrimaryTypeName(String) method (perhaps also other methods in templates), it causes IllegalArgumentException.

      It'd be better, if these methods just just log some warning and do nothing with empty String argument (or even null). If it is not against the specification, of course.

              rhauch Randall Hauch (Inactive)
              jchocholacek Jozef Chocholáček (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: