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

DateTimeType.java:38 NullPointerException (liquibase 4.0.0) #1366

Closed
mironbalcerzak opened this issue Sep 1, 2020 · 2 comments · Fixed by #1367
Closed

DateTimeType.java:38 NullPointerException (liquibase 4.0.0) #1366

mironbalcerzak opened this issue Sep 1, 2020 · 2 comments · Fixed by #1367

Comments

@mironbalcerzak
Copy link
Contributor

mironbalcerzak commented Sep 1, 2020

Environment

Liquibase Version: 4.0.0

Description

NPE in DateTimeType in

java.lang.NullPointerException
        at liquibase.datatype.core.DateTimeType.toDatabaseDataType(DateTimeType.java:38)

Steps To Reproduce

Generating SQL from changelog for Oracle DB is resulting in NPE

Actual Behavior

NPE raised

Expected/Desired Behavior

No NPE :)

Additional Context

Add any other context about the problem here.

@molivasdat
Copy link
Contributor

molivasdat commented Sep 3, 2020

Hi @mironbalcerzak Thanks for writing up this issue and thanks for submitted a PR to fix it. We will add this to our list of issues to process and merge as appropriate.
Do you have a testcase that reproduces the error?

@mironbalcerzak
Copy link
Contributor Author

mironbalcerzak commented Sep 4, 2020

Hi @molivasdat, no - I encountered that error in our environment, I don't have testcase. Since NPE is obvious and similar checks are done around the code, I went directly for doing a PR :)

@molivasdat molivasdat linked a pull request Sep 21, 2020 that will close this issue
7 tasks
@kevin-atx kevin-atx added hacktoberfest a month-long celebration of open-source software and Developers contribute by completing PRs and removed hacktoberfest a month-long celebration of open-source software and Developers contribute by completing PRs labels Sep 28, 2020
nvoxland added a commit that referenced this issue Apr 5, 2021
…_fix

#1366 DateTimeType.java:38 NullPointerException
nvoxland pushed a commit that referenced this issue Apr 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants