[Application] handle getcwd return null pointer