Skip to content

Issue with empty Email address criteria #335

@Romixery

Description

@Romixery

Hi,
Using version 6.6.1, I got an error when I used clearEmailAddressCriteria.
The error message: argument was assumed nonNull, but was null

The configuration I used:

MailerBuilder
                .withSMTPServer(SERVER_ADDRESS, SERVER_PORT, SERVER_USERNAME, SERVER_PASSWORD)
                .withTransportStrategy(TransportStrategy.SMTP)
                .withSessionTimeout(10 * 1000)
                .clearEmailAddressCriteria() 
                .withDebugLogging(true)
                .buildMailer();

Does anyone know how to fix it or do I have to wait for the bug fix? I investigated through the stack trace and found assumeNotNull checks for empty() of a collection too, so checking every empty collection will cause raise this error.
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions