Comment on Error: Call to a member function addMessage() on null