alexshyba / SitecoreSearchContrib

Extension to Sitecore.Search namespace. Includes AdvancedDatabaseCrawler and Searcher. Make sure to check out the website for the project.
http://sitecorian.github.io/SitecoreSearchContrib
25 stars 21 forks source link

fixed nullexception when item is not accessible due to security #24

Closed IvanLieckens closed 11 years ago

IvanLieckens commented 11 years ago

When an item is placed under security the getitem will return null, causing the check on the fields to cause a nullreferenceexception. Checking for null on versionItem resolves this issue.