mirror of
https://github.com/apache/archiva.git
synced 2025-02-07 10:39:02 +00:00
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 @@ private SearchResults searchAll( LuceneQuery luceneQuery, SearchResultLimits lim
|
||||
{
|
||||
try
|
||||
{
|
||||
searcher.close();
|
||||
if ( searcher != null )
|
||||
{
|
||||
searcher.close();
|
||||
}
|
||||
}
|
||||
catch ( IOException ie )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user