Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-48

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.2.1
    • mk
    • 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

      Attachments

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

        Issue Links

          Activity

            People

              thomasm Thomas Mueller
              mduerig Michael Dürig
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: