Skip to content

Crash when handling articles with no body #5

@kevingy

Description

@kevingy

When there is a Usenet article with no body (that is, the entire message is the subject line only), the library crashes in OverAsync when processing the return from the server. Consider the "parts" for this article header:

image

When the number of lines ("parts[7]") is parsed into an int at line 624 of NttpClient.cs, an exception is thrown as string.Empty can not be parsed as an int value.

(I can submit a pull request to fix this issue.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions