So I have a method that is checked when a user runs a command, well I get getting this wretched error that it's returning a NullPointer...

Heres my method,

```
   public boolean openReferal(String name) {
    for(String s : m.refferalSessions) {
        if(s.equalsIgnoreCase(name)) {
            return true;
        }
    }
    return false;
}

```

And heres how i'm implementing it...

```
   if(check.openReferal(sender.getName() + ":" + args[0])) {
            sender.sendMessage(openReferal);
            return true;
        }

```