solve the problem of parameter is null