Jackrabbit Oak
  1. Jackrabbit Oak
  2. OAK-48

MicroKernel.getNodes() should return null for not existing nodes instead of throwing an exception

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.2.1
    • Component/s: mk
    • Labels:
      None

      Description

      As discussed on the list [1, 2] exceptions should only be used for exceptional cases. Requesting a not existing node through Microkernel.getNodes() should therefore rather return null instead of throwing an exception.

      [1] http://markmail.org/thread/agibgcdjv756m53u
      [2] http://markmail.org/message/gfbmogwr6mrhe2pm

      1. OAK-48.patch
        6 kB
        Michael Dürig

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Thomas Mueller
              Reporter:
              Michael Dürig
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development