From: Tuukka Lehtonen Date: Mon, 29 Aug 2016 09:14:19 +0000 (+0300) Subject: Search-field in Help->Contents Fix. X-Git-Tag: v1.25.0~149 X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=commitdiff_plain;h=d37eb44554b881207f212b0801fc342918dd2b2c;hp=53cb2b79053761b8bb6b4380424bb694652df8a7 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 --- 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); }