# Data Explorer NoMethodError (undefined method \`username' for nil:NilClass)

**URL:** <https://meta.discourse.org/t/data-explorer-nomethoderror-undefined-method-username-for-nil-nilclass/54949>\
**Category:** Bug\
**Created:** [29. Dezember 2016 um 20:56 UTC](https://meta.discourse.org/t/data-explorer-nomethoderror-undefined-method-username-for-nil-nilclass/54949 "2016-12-29T20:56:37Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [29. Dezember 2016 um 22:56 UTC](https://meta.discourse.org/t/data-explorer-nomethoderror-undefined-method-username-for-nil-nilclass/54949/5 "2016-12-29T22:56:22Z")

</div>

> [@cpradio](#):
>
> do some queries in the rails console as it must be a corrupt user or corrupt revision entry

That sounds like a plan to me. The most I could dig up doesn’t look to be very helpful

> <https://github.com/discourse/discourse-data-explorer/blob/main/plugin.rb#L46-L54>

> <https://github.com/discourse/discourse-data-explorer/blob/main/plugin.rb#L142>

---

_[View the full topic](https://meta.discourse.org/t/data-explorer-nomethoderror-undefined-method-username-for-nil-nilclass/54949)._
