Menu

#116 NullReference Exception when comment is hidden

open
nobody
None
2018-11-03
2018-11-03
forger1
No

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.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.