Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-136

Fix possible NullPointerException in Gfsh's 'list regions' command's GetRegionsFunction.

    Details

      Description

      The following line (#48) in the GetRegionsFunction class could possibly lead to a NPE if the regions Set is null since the regions.isEmpty() call proceeds the regions == null check.

      Of course, one should argue whether Cache.rootRegions() should be returning a null Set at all rather than an empty Set if there are in fact no "root" Regions in the Geode Cache.

      But then, one could also argue that this GetRegionsFunction should not be returning a null "array" if there are no "root" Regions in the Geode Cache either. It too should be returning an "empty" array.

        Attachments

          Activity

            People

            • Assignee:
              kduling Kevin Duling
              Reporter:
              jblum John Blum
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: