Removed the class variable assignement of NULL because a default value for a class variable is by default NULL! And if you assign a default value do it in the constructor!