[ https://issues.apache.org/jira/browse/GEODE-782?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16804406#comment-16804406 ]
Anthony Baker commented on GEODE-782: ------------------------------------- I agree with the sentiment but closing due to inaction. Please reopen if needed. > RegionFunctionContext.getFilter() should never return null > ---------------------------------------------------------- > > Key: GEODE-782 > URL: https://issues.apache.org/jira/browse/GEODE-782 > Project: Geode > Issue Type: Wish > Components: functions > Reporter: Rafal Glowinski > Priority: Minor > > Currently, RegionFunctionContext.getFilter() returns null reference if > function has been called without providing any keys to filter. > I think that it would be much better to return Collections.EMPTY_SET instead > so that we should not check filter for null reference whenever we write > custom functions. I know that current behaviour should remain unchanged due > to backward compatibility, but maybe current getFilter() method could be made > @Deprecated and new one introduced? > I would be happy to implement it myself to get started with Geode OSS. -- This message was sent by Atlassian JIRA (v7.6.3#76005)