Bulk fetch throws NullPointerException