Fix potential NRE in lucene index

This commit is contained in:
andy
2016-04-21 12:06:07 -04:00
committed by Sébastien Ros
parent 43e1040661
commit c0d207f228

View File

@@ -14,7 +14,7 @@ namespace Lucene.Models {
_score = score;
}
public int ContentItemId { get { return int.Parse(GetString("id")); } }
public int ContentItemId { get { return GetInt("id"); } }
public int GetInt(string name) {
var field = _doc.GetField(name);