resolve the issue of crashed when return empty petition array ffrom server