From d37eb44554b881207f212b0801fc342918dd2b2c Mon Sep 17 00:00:00 2001 From: Tuukka Lehtonen Date: Mon, 29 Aug 2016 12:14:19 +0300 Subject: [PATCH] Search-field in Help->Contents Fix. Previously, searching in help contents caused NullPointerException when indexing. Now, by setting extraDocuments to an empty array before indexing, NullPointer doesn't occur and indexing proceeds as normal. refs #6658 --- .../src/org/simantics/help/core/SimanticsTocProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.simantics.help.core/src/org/simantics/help/core/SimanticsTocProvider.java b/bundles/org.simantics.help.core/src/org/simantics/help/core/SimanticsTocProvider.java index 559ef55ea..d9a31a4e3 100644 --- a/bundles/org.simantics.help.core/src/org/simantics/help/core/SimanticsTocProvider.java +++ b/bundles/org.simantics.help.core/src/org/simantics/help/core/SimanticsTocProvider.java @@ -114,7 +114,7 @@ public class SimanticsTocProvider extends AbstractTocProvider { contribution.setCategoryId("category_" + toc.getLabel()); contribution.setPrimary(true); contribution.setContributorId(Activator.PLUGIN_ID); - + contribution.setExtraDocuments(new String[0]); contribution.setToc(toc); contributions.add(contribution); } -- 2.47.1