Added null check before closing the searcher.

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@566949 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Maria Odea B. Ching 2007-08-17 07:11:12 +00:00
parent 2666b91c1b
commit db8685f9dd
1 changed files with 4 additions and 1 deletions

View File

@ -249,7 +249,10 @@ public class DefaultCrossRepositorySearch
{ {
try try
{ {
searcher.close(); if ( searcher != null )
{
searcher.close();
}
} }
catch ( IOException ie ) catch ( IOException ie )
{ {