You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Tobias Bocanegra (JIRA)" <ji...@apache.org> on 2017/03/27 06:40:41 UTC

[jira] [Resolved] (JCRVLT-158) Assert causing a NPE if executed

     [ https://issues.apache.org/jira/browse/JCRVLT-158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tobias Bocanegra resolved JCRVLT-158.
-------------------------------------
       Resolution: Fixed
    Fix Version/s: 3.1.40

fixed in r1788832

> 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
>            Assignee: Tobias Bocanegra
>             Fix For: 3.1.40
>
>
> 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)