mirror of https://github.com/apache/archiva.git
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:
parent
2666b91c1b
commit
db8685f9dd
|
@ -248,9 +248,12 @@ public class DefaultCrossRepositorySearch
|
|||
finally
|
||||
{
|
||||
try
|
||||
{
|
||||
if ( searcher != null )
|
||||
{
|
||||
searcher.close();
|
||||
}
|
||||
}
|
||||
catch ( IOException ie )
|
||||
{
|
||||
getLogger().error( "Unable to close index searcher: " + ie.getMessage(), ie );
|
||||
|
|
Loading…
Reference in New Issue