fix null error in merchantmethod class