Error: Call to a member function get() on null: Call to a member function get() on null