question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NullReferenceException when HTML payload starts with a comment

See original GitHub issue

Parsing 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:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
FlorianRapplcommented, Jan 2, 2018

I created a test for it. Does not fail. So this does not seem to be an issue.

0reactions
FlorianRapplcommented, Dec 6, 2017

Does the error still occur on devel of 0.10?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found