No way we can tell you without seeing the code. (We don't need to see it all, but at least line 2277 plus a few of the lines that precede it, as sometimes the root of the problem isn't necessarily on the line where the error was reported.)
PS: Using a descriptive title for your thread is more likely to get help than a generic "Help Me!" title. Most people are posting here to ask for help, so that's kind of a given. 🙂