merge fix on branch rev15295
svn: r15327
This commit is contained in:
parent
788b731168
commit
e2e3065cfb
@ -306,7 +306,7 @@ class ProxyDbBase(DbReadBase):
|
|||||||
"""
|
"""
|
||||||
Returns obj if predicate is True or not callable, else returns None
|
Returns obj if predicate is True or not callable, else returns None
|
||||||
"""
|
"""
|
||||||
if predicate is not None:
|
if predicate is not None and obj is not None:
|
||||||
return obj if predicate(obj.handle) else None
|
return obj if predicate(obj.handle) else None
|
||||||
return obj
|
return obj
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user