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

SessionData.ProfileData needs a null check #2

Closed
deeja opened this issue Dec 2, 2019 · 2 comments
Closed

SessionData.ProfileData needs a null check #2

deeja opened this issue Dec 2, 2019 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@deeja
Copy link

deeja commented Dec 2, 2019

If there is no session, then ProfileData is null and a Null Reference occurs

  <% if (SessionData.ProfileData.Any()) { %>
                    <tr>
                        <td>Profiles:</td>
						<td>
                            <ul>
                            <% foreach (var profile in SessionData.ProfileData)
                                { %>
                                <li><%= profile %></li>
                            <%} %>
                            </ul>
						</td>
                    </tr>
                    <% } %>
@deeja
Copy link
Author

deeja commented Dec 2, 2019

Thanks for this tool by the way!

@lowedown
Copy link
Owner

lowedown commented Dec 6, 2019

Thanks for reporting. This is fixed now in V1.0

@lowedown lowedown closed this as completed Dec 6, 2019
@lowedown lowedown added the bug Something isn't working label Dec 6, 2019
@lowedown lowedown self-assigned this Dec 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants