You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Andreas Schaefer (JIRA)" <ji...@apache.org> on 2017/02/14 16:55:41 UTC
[jira] [Created] (JCRVLT-158) Assert causing a NPE if executed
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)