# Having trouble with "Search This Topic"

**URL:** <https://meta.discourse.org/t/having-trouble-with-search-this-topic/195541>\
**Category:** Bug\
**Created:** [June 30, 2021, 7:22pm UTC](https://meta.discourse.org/t/having-trouble-with-search-this-topic/195541 "2021-06-30T19:22:46Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![dan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dan/32/101549_2.png) [@dan](https://meta.discourse.org/u/dan)\
**Post date:** [July 1, 2021, 1:18pm UTC](https://meta.discourse.org/t/having-trouble-with-search-this-topic/195541/6 "2021-07-01T13:18:44Z")

</div>

This a nice catch. We had another bug in that area: a function was called and the return value was discarded. That was a mistake and I made it use the result, but it turns out that the function is buggy and it does not handle empty results. It was originally introduced in:

[https://github.com/discourse/discourse/commit/11ee07093c939940f8d09c36211d0f2d0aa8ca56](https://github.com/discourse/discourse/commit/11ee07093c939940f8d09c36211d0f2d0aa8ca56)

and then nudged in:

[https://github.com/discourse/discourse/commit/ff4fb9c77119ec7e6b2091078b4ff405b8e5a629](https://github.com/discourse/discourse/commit/ff4fb9c77119ec7e6b2091078b4ff405b8e5a629)

I fixed it in and will be available to update after review:

[https://github.com/discourse/discourse/pull/13604](https://github.com/discourse/discourse/pull/13604)

---

_[View the full topic](https://meta.discourse.org/t/having-trouble-with-search-this-topic/195541)._
