Fixed NullPointerException in constructor of ChatSystem