Describe the bug
If fields are omitted when using the Builder the app will crash or behave improperly when running the code because null checks are not done properly.
To Reproduce
Steps to reproduce the behavior:
omit calling attachment(...)
Run the app
Touch SEND EMAIL
App will crash
Expected behavior
App shouldn't crash and email should be sent without attachment
Additional context
Builder pattern should allow for omitting whatever and still work. They might be other fields that cause this behavior, didn't test all of them only attachment.
Describe the bug If fields are omitted when using the
Builder
the app will crash or behave improperly when running the code because null checks are not done properly.To Reproduce Steps to reproduce the behavior:
attachment(...)
SEND EMAIL
Expected behavior App shouldn't crash and email should be sent without attachment
Additional context Builder pattern should allow for omitting whatever and still work. They might be other fields that cause this behavior, didn't test all of them only attachment.