jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Reutegger (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JCR-1373) Suspect handling of Null ptr in QueryTreeDump
Date Wed, 13 Feb 2008 09:18:08 GMT

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

Marcel Reutegger resolved JCR-1373.
-----------------------------------

       Resolution: Invalid
    Fix Version/s:     (was: 1.4.1)

Because we want to see the 'null' in the dump.

> Suspect handling of Null ptr in QueryTreeDump
> ---------------------------------------------
>
>                 Key: JCR-1373
>                 URL: https://issues.apache.org/jira/browse/JCR-1373
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jackrabbit-core
>    Affects Versions: 1.4
>            Reporter: Dave Brosius
>            Priority: Minor
>
> QueryTreeDump.java around line 247 - This seems suspect
> if relPath is null, why append it to buffer?
> {code}
>         Path relPath = node.getRelativePath();
>         if (relPath == null) {
>             buffer.append(relPath);
>         } else {
>             Path.Element[] elements = relPath.getElements();
>             String slash = "";
>             for (int i = 0; i < elements.length; i++) {
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message