jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Schaefer (JIRA)" <j...@apache.org>
Subject [jira] [Created] (JCRVLT-158) Assert causing a NPE if executed
Date Tue, 14 Feb 2017 16:55:41 GMT
Andreas Schaefer created JCRVLT-158:
---------------------------------------

             Summary: Assert causing a NPE if executed
                 Key: JCRVLT-158
                 URL: https://issues.apache.org/jira/browse/JCRVLT-158
             Project: Jackrabbit FileVault
          Issue Type: Bug
          Components: vlt
    Affects Versions: 3.0
            Reporter: Andreas Schaefer


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.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message