fix repository and cloud is null error. Now the example could run successfully.