EntityLog throws NullPointerException when create new entity

I am using Cuba 6.9.4.

My entity is based on BaseIntIdentityIdEntity.

When I execute EntityLog on this entity, a NullPointerException is thrown on line 110 of com.haulmont.cuba.security.app.EntityLog.

I noticed that getObjectEntityId returns null, so what should I do?

Thank you for reporting the problem, we have created an issue for it.