Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Followers link throws null reference exception #23

Open
chsakell opened this issue Feb 2, 2015 · 0 comments
Open

Followers link throws null reference exception #23

chsakell opened this issue Feb 2, 2015 · 0 comments

Comments

@chsakell
Copy link

chsakell commented Feb 2, 2015

Navigating to Account/Followers, clicking on a follower's link, throws NULL Reference exception cause UserId is null at:

var followers = Mapper.Map<IEnumerable, IEnumerable>(users);

id will be null when reaching Account/UserProfile(string id)
var user = userService.GetUserProfile(id);

Changing both FollowingViewModel and FollowersViewModel to have string Id (not UserId) and their respective partial views will solve the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant