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
|
@ -249,7 +249,10 @@ public class DefaultCrossRepositorySearch
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
searcher.close();
|
if ( searcher != null )
|
||||||
|
{
|
||||||
|
searcher.close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch ( IOException ie )
|
catch ( IOException ie )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue