That is the immediate point where the error has revealed itself. It’s #0 in the stack trace, somewhere in Yii Framework core code. But the real cause of the error is in your code (#10 or #20 in the stack trace, I don’t know) … probably you are handling some variable as Model but it is null in reality.