Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2138

JCR-SQL2 query throws NPE if ordering by [jcr:path]

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.0.0.Alpha1
    • 3.7.1.Final
    • Query
    • None

      Query

      select p.*, p.[jcr:path] from [nt:base] as p join [nt:base] as ch on isdescendantnode(ch,p) order by p.[jcr:path]
      

      throws NPE at SortValuesComponent.createSortComparator:134.

      Query

      select p.*, p.[jcr:path] from [nt:base] as p join [nt:base] as ch on isdescendantnode(ch,p) order by p.[jcr:pathxxx]
      

      passes.

              rhauch Randall Hauch (Inactive)
              jaroslav.skraban Jaroslav Skraban (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: