# Null pointer exception in Liquibase core

**URL:** <https://forum.liquibase.org/t/null-pointer-exception-in-liquibase-core/6838>\
**Category:** General Discussion\
**Created:** [May 10, 2022, 2:19pm UTC](https://forum.liquibase.org/t/null-pointer-exception-in-liquibase-core/6838 "2022-05-10T14:19:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunny\_days](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@sunny\_days](https://forum.liquibase.org/u/sunny_days)\
**Post date:** [May 10, 2022, 2:19pm UTC](https://forum.liquibase.org/t/null-pointer-exception-in-liquibase-core/6838/1 "2022-05-10T14:19:49Z")

</div>

I am getting a null pointer issue in Liquibase core. it started in 3.7.x onward. my code is working fine with the 3.6.3 core jar. I was trying to create table by table in oracle DB by comparing changelogs.

`Caused by: java.lang.NullPointerException at liquibase.changelog.ChangeSet.isInheritableIgnore(ChangeSet.java:900) ~[liquibase-core-4.9.0.jar:?] at liquibase.changelog.filter.IgnoreChangeSetFilter.accepts(IgnoreChangeSetFilter.java:11) ~[liquibase-core-4.9.0.jar:?] at liquibase.changelog.ChangeLogIterator$2.run(ChangeLogIterator.java:79) ~[liquibase-core-4.9.0.jar:?] at liquibase.Scope.lambda$child$0(Scope.java:180) ~[liquibase-core-4.9.0.jar:?] at liquibase.Scope.child(Scope.java:189) ~[liquibase-core-4.9.0.jar:?] at liquibase.Scope.child(Scope.java:179) ~[liquibase-core-4.9.0.jar:?] at liquibase.Scope.child(Scope.java:158) ~[liquibase-core-4.9.0.jar:?] at liquibase.Scope.child(Scope.java:243) ~[liquibase-core-4.9.0.jar:?] at liquibase.Scope.child(Scope.java:247) ~[liquibase-core-4.9.0.jar:?] at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:65) ~[liquibase-core-4.9.0.jar:?] ... 8 more`

---

<div class="post-metadata">

**Author:** ![sunny\_days](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@sunny\_days](https://forum.liquibase.org/u/sunny_days)\
**Post date:** [May 10, 2022, 6:13pm UTC](https://forum.liquibase.org/t/null-pointer-exception-in-liquibase-core/6838/3 "2022-05-10T18:13:34Z")

</div>

I found same kind of issue in postgresql also. I am also getting Error executing SQL SELECT COUNT(\*) FROM DATABASECHANGELOG: ORA-00942: table or view does not exist. this cause null pointer issue at public boolean isInheritableIgnore() {  
DatabaseChangeLog changeLog = this.getChangeLog();  
return changeLog.isIncludeIgnore(); // HERE  
}

> [@Liquibase maven plugin: cannot find the databasechangelog table, PostgreSQL](https://forum.liquibase.org/t/liquibase-maven-plugin-cannot-find-the-databasechangelog-table-postgresql/4415/7):
>
> Let me see if I can reproduce this error. Here’s what I am going to do, let me know @ned (or @smstromb) if you don’t have the same setup: install Liquibase (my local system is a Mac, what are you using?) Create a liquibase project (folder with liquibase.properties, changelog.xml) make sure liquibase.properties is pointing to a postgres db (what version are you using?) run a liquibase update and see if I get the databasechangeloglock table error. Thanks, Ronak

---

<div class="post-metadata">

**Author:** ![sunny\_days](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@sunny\_days](https://forum.liquibase.org/u/sunny_days)\
**Post date:** [May 12, 2022, 8:02am UTC](https://forum.liquibase.org/t/null-pointer-exception-in-liquibase-core/6838/4 "2022-05-12T08:02:58Z")

</div>

same error  
**Cannot invoke “liquibase.changelog.DatabaseChangeLog.isIncludeIgnore()” because “changeLog” is null**.

---

<div class="post-metadata">

**Author:** ![ktaggart](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.liquibase.org/ktaggart/32/596_2.png) [@ktaggart](https://forum.liquibase.org/u/ktaggart)\
**Post date:** [May 12, 2022, 1:56pm UTC](https://forum.liquibase.org/t/null-pointer-exception-in-liquibase-core/6838/5 "2022-05-12T13:56:59Z")

</div>

noting your PR [null pointer issue if change changelog object is null by kamalnigam · Pull Request #2837 · liquibase/liquibase · GitHub](https://github.com/liquibase/liquibase/pull/2837) thanks for submitting
