Get list items sharepoint

I did write a query to return all list items if satisfies a condition. if no list items are returned, ‘Get List items’ activity itself throwing exception stating ‘Index out of bound’ . Please help me.