# NPE when enabling DEBUG on orm.results.loading in Hibernate 6

**URL:** <https://discourse.hibernate.org/t/npe-when-enabling-debug-on-orm-results-loading-in-hibernate-6/7307>\
**Category:** Hibernate ORM\
**Created:** [February 27, 2023, 3:49pm UTC](https://discourse.hibernate.org/t/npe-when-enabling-debug-on-orm-results-loading-in-hibernate-6/7307 "2023-02-27T15:49:13Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![beikov](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/beikov/32/258_2.png) [@beikov](https://discourse.hibernate.org/u/beikov)\
**Post date:** [February 27, 2023, 7:33pm UTC](https://discourse.hibernate.org/t/npe-when-enabling-debug-on-orm-results-loading-in-hibernate-6/7307/2 "2023-02-27T19:33:25Z")

</div>

You can create a JIRA ticket for this. I guess it’s not very sensible to call the actual `toString()` method at this point, and we should rather log the identity hash code instead.

---

_[View the full topic](https://discourse.hibernate.org/t/npe-when-enabling-debug-on-orm-results-loading-in-hibernate-6/7307)._
