Fixed the bug. No resultset longer points to null