From db8685f9ddade743c6e88f609242827f8cee6ba8 Mon Sep 17 00:00:00 2001 From: "Maria Odea B. Ching" Date: Fri, 17 Aug 2007 07:11:12 +0000 Subject: [PATCH] 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 --- .../archiva/indexer/search/DefaultCrossRepositorySearch.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/archiva-base/archiva-indexer/src/main/java/org/apache/maven/archiva/indexer/search/DefaultCrossRepositorySearch.java b/archiva-base/archiva-indexer/src/main/java/org/apache/maven/archiva/indexer/search/DefaultCrossRepositorySearch.java index a6af9094d..eb1676750 100644 --- a/archiva-base/archiva-indexer/src/main/java/org/apache/maven/archiva/indexer/search/DefaultCrossRepositorySearch.java +++ b/archiva-base/archiva-indexer/src/main/java/org/apache/maven/archiva/indexer/search/DefaultCrossRepositorySearch.java @@ -249,7 +249,10 @@ public class DefaultCrossRepositorySearch { try { - searcher.close(); + if ( searcher != null ) + { + searcher.close(); + } } catch ( IOException ie ) { -- 2.39.5