# PagerDuty Incident: undefined method '\[\]' for nil:NilClass

### Incident Detail

#### Symptoms

Exception such as:
```
undefined method `[]' for nil:NilClass
```

#### Likelihood of Occurrence

Low

#### Example

https://twitchoncall.pagerduty.com/incidents/PM80148

### Cause

This is a Ruby exception that a method was called on something that doesn't exist.

### Resolution

See the screenshot. This often occurs if it was trying to click on an element that wasn't there, such as a channel from the following directory.

Follow the stack trace - this will lead you to the exact line.

If the screenshot shows elements missing that should be there, consider escalating to engineering on-call.
