truonglv
Well-known member
- Affected version
 - Latest
 
If this code block 
I guess that record in the table
				
			$userFollow = $followService->unfollow(); return to null then the line 441 in XF\Pub\Controller\Member will cause above error.I guess that record in the table
xf_user_follow does not exists but in the table user cached are not updated in some cases.