All project content is available for reading, but you need to be a member of the project for Subversion checkout of source code, or to create/modify any information.
Login if you are a member. Apply here to request membership (open to all).

Ticket #152 (closed defect: fixed)

Opened 12 years ago

Last modified 12 years ago

Calling .LocalPath on an EPi UnifiedFile can throw a Null Exception

Reported by: andyturl@… Owned by: andyturl@…
Priority: minor Component: EasySearch
Keywords: Cc:


In LuceneDocumentFactory.cs calling .LocalPath on a non-null file can throw an exception. GetDocumentContents() needs to guard against this with a try catch.

string contents = GetDocumentContentsViaIFilter(file.LocalPath);

Change History

comment:1 Changed 12 years ago by andyturl@…

  • Status changed from new to closed
  • Resolution set to fixed

NullReferenceException as well as general Exceptions, are now being caught when trying to use the property LocalPath on a non-null UnifiedFile.

Note: See HelpUser/Tickets for help on using tickets.