[ https://issues.apache.org/jira/browse/GEODE-7081?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16906611#comment-16906611 ]
ASF subversion and git services commented on GEODE-7081: -------------------------------------------------------- Commit e7beb9290175405c1f285add7c538a0a18df674e in geode's branch refs/heads/develop from Aaron Lindsey [ https://gitbox.apache.org/repos/asf?p=geode.git;h=e7beb92 ] GEODE-7081: Prevent NPE in getLocalSize() Prevent PartitionedRegion's getLocalSize() from throwing a NullPointerException if called before its internal data store is initialized. The stats sampler uses this method to get the region's entry count, and stats sampling may start before the internal data store is initialized. > NPE in PartitionedRegion.getLocalSize() > --------------------------------------- > > Key: GEODE-7081 > URL: https://issues.apache.org/jira/browse/GEODE-7081 > Project: Geode > Issue Type: Bug > Reporter: Aaron Lindsey > Assignee: Aaron Lindsey > Priority: Major > Time Spent: 40m > Remaining Estimate: 0h > > PartitionedRegion.getLocalSize() throws a NullPointerException if called > before PartitionedRegion.initialize(). It should return zero instead of > throwing. -- This message was sent by Atlassian JIRA (v7.6.14#76016)