Exception:Call to a member function getSorting() on null

Error ID: 0