NullReferenceException when HTML payload starts with a comment
See original GitHub issueParsing this HTML throws a NullReferenceException.
<!-- Comment -->
<html>
<head></head>
<body></body>
</html>
There was a very similar report with a comment at the end which was fixed: #459
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
NullReferenceException when HTML payload ends with a ...
When I'm parsing this code I get an error. System.NullReferenceException: Object reference not set to an instance of an object.
Read more >Getting payload as null for POST and PUT requests
I figured out the problem, this was happening because I was getting the payload using [FromBody] PayloadModel payload in the parameter of Post ......
Read more >What is a Null Reference Exception?
NullReferenceException happens when your script code tries to use a variable which isn't set (referencing) and object. The error message that appears tells...
Read more >Object Reference Not Set to an Instance of an Object
This infamous and dreaded error message happens when you get a NullReferenceException. This exception is thrown when you try to access a member—for...
Read more >How can I fix the error: System.NullReferenceException
I am getting error on this statement: rentTextBox.Text = aptId.rentTextBox.Text;. Error: System.NullReferenceException: 'Object reference not ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I created a test for it. Does not fail. So this does not seem to be an issue.