Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2017-11-15 08:47:11 +0000
committerAlexander Kurtakov2017-11-15 08:47:11 +0000
commitee299c669d839237861229847693d939c1da7565 (patch)
tree09516cb3f5fe3ad1713f75ea3c080b9c921507ab
parent49178f126919c33eef7515f330f5895269e95583 (diff)
downloadeclipse.platform.ua-ee299c669d839237861229847693d939c1da7565.tar.gz
eclipse.platform.ua-ee299c669d839237861229847693d939c1da7565.tar.xz
eclipse.platform.ua-ee299c669d839237861229847693d939c1da7565.zip
Bug 525267 - Update platform.ua to Lucene 7I20171115-2000
Handle old index formats. Lucene now throws different exception. Change-Id: Ia1081638119385af3728b56a410c72fd59e14934 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--org.eclipse.help.base/src/org/eclipse/help/internal/search/SearchIndex.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.help.base/src/org/eclipse/help/internal/search/SearchIndex.java b/org.eclipse.help.base/src/org/eclipse/help/internal/search/SearchIndex.java
index 6085bb53d..0903ed4ef 100644
--- a/org.eclipse.help.base/src/org/eclipse/help/internal/search/SearchIndex.java
+++ b/org.eclipse.help.base/src/org/eclipse/help/internal/search/SearchIndex.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2016 IBM Corporation and others.
+ * Copyright (c) 2000, 2017 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -199,7 +199,7 @@ public class SearchIndex implements IHelpSearchIndex {
try {
DirectoryReader.open(luceneDirectory);
- } catch (IndexFormatTooOldException | IndexNotFoundException e) {
+ } catch (IndexFormatTooOldException | IndexNotFoundException | IllegalArgumentException e) {
deleteDir(indexDir);
indexDir.delete();
} catch (IOException e) {

Back to the top