NullReference Exception when comment is hidden
Make robots for MediaWiki-powered sites!
Brought to you by:
code_driller
In mediawiki comments and also edits can be hidden by admins. Reading an article which comment is hidden results in a NullReference Exception in LoadWithMetadata() in line: comment = revXml.Attribute("comment").Value; So revXml.Attribute("comment") should be checked for null before accessing its Value.