Skip to content

Error when using ObjectFilters.ALL with an empty ObjectRepository #14

@ariel-lenis

Description

@ariel-lenis

Hi, i'm creating an empty database and after that trying to get the count of the elements for an objectRepository (at begin i expect a 0) returns this exception:

I'm using something like this:
int count = objectRepository.find(ObjectFilters.ALL).totalCount()

And this is a part of the exception:

 org.dizitart.no2.exceptions.ValidationException: NO2.1076: filter can not be null
                                                                                    at org.dizitart.no2.util.ValidationUtils.notNull(ValidationUtils.java:76)
                                                                                    at org.dizitart.no2.objects.DefaultObjectRepository.find(DefaultObjectRepository.java:188)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions