You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Dave Brosius (JIRA)" <ji...@apache.org> on 2008/02/12 07:56:09 UTC

[jira] Created: (JCR-1373) Suspect handling of Null ptr in QueryTreeDump

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
             Fix For: 1.4.1


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.


[jira] Resolved: (JCR-1373) Suspect handling of Null ptr in QueryTreeDump

Posted by "Marcel Reutegger (JIRA)" <ji...@apache.org>.
     [ 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.