Call to a member function getNodes() on null

Call to a member function getNodes() on null