Skip to content
Snippets Groups Projects
Commit 559c2d1a authored by Vincent Massol's avatar Vincent Massol
Browse files

[Misc] Protect against null content

parent c9b99df2
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,7 @@ public class DefaultContentParser implements ContentParser
@Override
public XDOM parse(String content, Syntax syntax) throws ParseException, MissingParserException
{
return getParser(syntax).parse(new StringReader(content));
return getParser(syntax).parse(new StringReader(content == null ? "" : content));
}
@Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment