Fix potential NPE with null cursor

Detect and handle null cursors returned from CP2 queries.

Bug:12767708
Change-Id: I7bc4f97848a59140aba5a2c924c79fdc2749b150
3 files changed
tree: 922bfb02253027303bb0dae678c046153d88f947
  1. src/
  2. TestCommon/
  3. tests/