In 5.0.x versions AdminAuditable fields are removed from classes like PageImpl or StructuredContentImpl but they kept
@EntityListeners(value = { AdminAuditableListener.class })
..which cause NullPointerException in AdminAuditableListener because reflected auditable field don't exists
Because of that in 5.0.2 adding a page in admin resulted in the same error but that was fixed in 5.0.3. Now the same thing is happening with adding structured content items.
Based on comparison between the two (I don't understand all broadleaf annotations - scarse non-enterprise documentation) I succeeded to overcome this by extending StructuredContentImpl and annotating it with
@DirectCopyTransformMember(templateTokens = DirectCopyTransformTypes.AUDITABLE_ONLY)
My question is: is it really a bug or am I missing something due to low familiarity with broadleaf and low probability that developers made and testers oversaw multiple same bugs on auditable refactoring ?