You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2018/03/28 21:48:03 UTC

[GitHub] lkishalmi closed pull request #413: [NETBEANS-285] Fix Quick Search Exception on missing JavaHelp RT

lkishalmi closed pull request #413: [NETBEANS-285] Fix Quick Search Exception on missing JavaHelp RT
URL: https://github.com/apache/incubator-netbeans/pull/413
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/javahelp/src/org/netbeans/modules/javahelp/JavaHelpQuickSearchProviderImpl.java b/javahelp/src/org/netbeans/modules/javahelp/JavaHelpQuickSearchProviderImpl.java
index fec66d95f..c00ffc0a7 100644
--- a/javahelp/src/org/netbeans/modules/javahelp/JavaHelpQuickSearchProviderImpl.java
+++ b/javahelp/src/org/netbeans/modules/javahelp/JavaHelpQuickSearchProviderImpl.java
@@ -41,7 +41,13 @@
     public void evaluate(SearchRequest request, SearchResponse response) {
         synchronized( this ) {
             if( null == query ) {
-                query = JavaHelpQuery.getDefault();
+                try {
+                    query = JavaHelpQuery.getDefault();
+                } catch (NoClassDefFoundError er) {
+                    // Fixing [NETBEANS-285]
+                    // The JavaHelp Runtime might be not provided with the Platform
+                    return;
+                } 
             }
         }
         List<SearchTOCItem> res = query.search( request.getText() );


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists