-
-
Notifications
You must be signed in to change notification settings - Fork 556
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
NullReferenceException when HTML payload ends with a comment #459
Comments
From the dump you've shown it does not seem that parsing is the problem - rather the serialization. Can you confirm and show the code (not the document, i.e., present a MWE) that crashes? Thanks! |
I think that it might be when it's converted to a HtmlDocument? |
Nope - there is no such process. It starts with an |
Which version are you using? I can't reproduce the bug. |
I'm using the latest version - but trough PreMailer.NET. Since the exception was trown from AngleSharp i figured that the issues was there. If my example with the comment works then the issue is in PreMailer.NET - sorry for that! |
I assume the error is in this line. I've checked with the current code and everything seems to be fine here. My guess is that the problem indeed existed (and has to do with comments in general - independent of their position!), but is already gone due to some fix earlier in the process of v0.10. |
There is the same issue with a comment in the beginning: #610 |
When I'm parsing this code I get an error.
Removing the comment in the end solves the issue.
The text was updated successfully, but these errors were encountered: