hhuijser/liferay-portal — pull request #1921 by jonathanmccann (2014-06-02 16:51:01+00:00)
Title: LPS-47341

Hey Hugo,

I set the snippet to blank because the snippet is used like this (or it's not used at all):

String content = snippet;

if (Validator.isNull(snippet)) {
content = StringUtil.shorten(document.get(Field.CONTENT), 200);
}

So there won't be any worry for an NPE/strange result later on down the line.

The NPE on "summary" comes from ContactIndexer.doGetSummary where the method simply returns null.

Let me know if you have any questions. Thanks.