make sure the process arguments string is not empty before copying from proc
make sure the process environment variable string is not empty before copying from proc