looker / lookerbot

Lookerbot lets you access all your Looker data from Slack! Super fun!
https://looker.com/lookerbot
MIT License
169 stars 141 forks source link

”Cannot read property 'name' of null" occurs in the find command. #164

Open YoheiN opened 5 years ago

YoheiN commented 5 years ago

Hi, I got the following error with the find command.

image

When I checked the log, it occurred under the following conditions.

  1. Move the target Look to the trash.

  2. Delete the Space where the Look existed.

  3. With this, Space becomes blank in the trash box as below. (The creator's name is masked.)

    no-space-image
  4. The following error is displayed when I search for that Look.

    error-image

So, after doing a search in the LookFinder class, I think it is necessary to first check if the results contain null.

Thank you.