]> source.dussan.org Git - archiva.git/commitdiff
Added null check before closing the searcher.
authorMaria Odea B. Ching <oching@apache.org>
Fri, 17 Aug 2007 07:11:12 +0000 (07:11 +0000)
committerMaria Odea B. Ching <oching@apache.org>
Fri, 17 Aug 2007 07:11:12 +0000 (07:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@566949 13f79535-47bb-0310-9956-ffa450edef68

archiva-base/archiva-indexer/src/main/java/org/apache/maven/archiva/indexer/search/DefaultCrossRepositorySearch.java

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