mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fix potential NRE in lucene index
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user