Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling clear or setValue(null) on DateBox throws a NPE. #803

Closed
FrankHossfeld opened this issue Aug 3, 2023 · 0 comments
Closed

Calling clear or setValue(null) on DateBox throws a NPE. #803

FrankHossfeld opened this issue Aug 3, 2023 · 0 comments
Assignees
Labels
bug Something isn't working version 2.x.x Version 2.x.x issues
Milestone

Comments

@FrankHossfeld
Copy link
Contributor

FrankHossfeld commented Aug 3, 2023

To reproduce the error, create a DateBox using this code:

    myDateBox = DateBox.create("myDateBox"))
        .setReadOnly(true)   
        .setPattern("dd.MM.yyyy")
        .setParseStrict(true)
        .withPopover((parent, popover) -> popover.addCss(dui_accent_blue));

and then call:

myDateBox.clear();

or

myDateBox.setValue(null);

this will create the following issue:

Bildschirmfoto 2023-08-03 um 11 56 06

This happens in version 2.0.0-rc1. In version 1.0.0 it works as expected.

@vegegoku vegegoku self-assigned this Aug 3, 2023
@vegegoku vegegoku added the bug Something isn't working label Aug 3, 2023
@vegegoku vegegoku added this to the 2.0.0-RC2 milestone Aug 3, 2023
@vegegoku vegegoku changed the title DateBox: clear() does not work, setValue(null) ... Calling clear or setValue(null) on DateBox throws a NPE. Aug 3, 2023
@vegegoku vegegoku added the version 2.x.x Version 2.x.x issues label Aug 3, 2023
@vegegoku vegegoku closed this as completed Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working version 2.x.x Version 2.x.x issues
Projects
None yet
Development

No branches or pull requests

2 participants