- fixed nullpointerexpection when a db query had an empty result list