]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Search-field in Help->Contents Fix.
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Mon, 29 Aug 2016 09:14:19 +0000 (12:14 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Mon, 29 Aug 2016 09:14:19 +0000 (12:14 +0300)
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

bundles/org.simantics.help.core/src/org/simantics/help/core/SimanticsTocProvider.java

index 559ef55ea816746816867887877ad72a1084c287..d9a31a4e3b274bc4df6d32d39ff42556402bb8e2 100644 (file)
@@ -114,7 +114,7 @@ public class SimanticsTocProvider extends AbstractTocProvider {
             contribution.setCategoryId("category_" + toc.getLabel());\r
             contribution.setPrimary(true);\r
             contribution.setContributorId(Activator.PLUGIN_ID);\r
-            \r
+            contribution.setExtraDocuments(new String[0]);\r
             contribution.setToc(toc);\r
             contributions.add(contribution);\r
         }\r