OH!

很抱歉,Call to a member function toArray() on null