hotsh/ostatus — pull request #6 by clnclarinet (2012-02-23 01:31:18+00:00)
Title: Salmon empty xml

rstat.us hit this: https://github.com/hotsh/rstat.us/issues/508

Namely, if you pass an empty string to OStatus::Salmon.from_xml, you get an exception from the XML parsing saying that one or more characters are required.

I could be convinced that the exception being returned is correct, but there are other cases in which this method just returns nil, so this patch returns nil in this case as well so that invalid inputs get consistent output. Meh.