Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0.0-incubating
-
GemFire Manager + Gfsh
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.