Jira issue originally created by user sgarner:
Comment created by @FabioBatSilva:
Could you please try to write a failing test case or paste your entities ?
Comment created by @beberlei:
Verified by code review that this issue exists, but it will be very tricky to fix, because the null check is there for other reasons as well.