Uploaded image for project: 'Jackrabbit FileVault'
  1. Jackrabbit FileVault
  2. JCRVLT-158

Assert causing a NPE if executed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0
    • 3.1.40
    • vlt
    • None

    Description

      The AggregateManagerImpl.mount() contains this line of code:

      assert mountpoint.getWorkspace().equals(session.getWorkspace().getName());

      This assertion is throwing an Null Pointer Exception as mount point.getWorkspace() returns null if the workspace is '-'.

      In addition my mountpoint's workspace is '-' and the session's workspace name is 'crx.default' and it works so I would think the assertion is not correct or at least overzealous.

      Jackrabbit VLT is used within Apache Sling impl-vlt package and that is used inside an IntelliJ Plugin. By default IntelliJ runs with the '-ea' flag causing my code to fail with an NPE.

      Attachments

        Activity

          People

            tripod Tobias Bocanegra
            andysch Andreas Schaefer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: