w3stling / rssreader

A simple Java library for reading RSS and Atom feeds
MIT License
152 stars 25 forks source link

Fix RssReader not being initialized on readAsync calls #75

Closed Mikusch closed 1 year ago

Mikusch commented 1 year ago

59 introduced a regression where calling readAsync (without calling read first) will cause all data to be empty/null.

This PR moves the initialize call to readAsync, because each function eventually calls into that anyway. The only exception to this is the read(InputStream) overload, so it remains unchanged.

w3stling commented 1 year ago

Well spotted.

LGTM