Exception in IndexingTaskExecutor.cs

Topics: Troubleshooting
Apr 14, 2011 at 5:53 AM

Exception is being thrown on line 190:


item.ContentItem evaluates to null, so there is no Id property to evaluate.

Should probably wrap the call to deleteFromIndex with a check for null:

                        if (documentIndex == null) {
			if (item.ContentItem != null){
                        else if (documentIndex.IsDirty) {


Apr 14, 2011 at 7:59 PM

Please file a bug with the circumstances under which you got this exception.

Apr 14, 2011 at 8:34 PM

I've been hitting errors like this and it turned out there was an exception happening in a ContentPartDriver; the exceptions seem to get swallowed silently but then cause bizarre and confusing side effects. Of course I don't know if this is the same reason, but I'd suggest debugging and stepping through any driver code to check there are no errors.