Hi,
Please find the attached patch which fixes the error while selecting therow which was deleted just before selection operation.
Thanks,Yogesh MahajanEnterpriseDB