update in MethodReplace

-  in makeStatement, add condition in case object is null