Skip to content

Commit

Permalink
Merge pull request #19594 from gastaldi/fix_npe
Browse files Browse the repository at this point in the history
Initialize HibernateOrmConfigPersistenceUnitLog#queriesSlowerThanMs
  • Loading branch information
gsmet authored Aug 24, 2021
2 parents 5ee254f + 37b043f commit 8233625
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public static class HibernateOrmConfigPersistenceUnitLog {
* If set, Hibernate will log queries that took more than specified number of milliseconds to execute.
*/
@ConfigItem
public Optional<Long> queriesSlowerThanMs;
public Optional<Long> queriesSlowerThanMs = Optional.empty();

public boolean isAnyPropertySet() {
return sql || !formatSql || jdbcWarnings.isPresent() || queriesSlowerThanMs.isPresent();
Expand Down

0 comments on commit 8233625

Please sign in to comment.