jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Brosius (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-1373) Suspect handling of Null ptr in QueryTreeDump
Date Tue, 12 Feb 2008 06:56:09 GMT
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.


Mime
View raw message