Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 325999

Summary: [Help][Criteria] NPE when searching with scope if hits are in extradir
Product: [Eclipse Project] Platform Reporter: Chris Goldthorpe <cgold>
Component: User AssistanceAssignee: Chris Goldthorpe <cgold>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.7   
Target Milestone: 3.7 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Patch none

Description Chris Goldthorpe CLA 2010-09-22 13:38:01 EDT
I20100921-1024

Run the help test D2
With the scope set to "tk" search for "searchable" (without the quotes).

Expected result: there are several search hits
Actual result: No search hits and an NPE:

java.lang.NullPointerException
	at org.eclipse.help.internal.base.scope.FilterScope.inScope(FilterScope.java:37)
Comment 1 Chris Goldthorpe CLA 2010-09-22 17:04:09 EDT
Created attachment 179416 [details]
Patch
Comment 2 Chris Goldthorpe CLA 2010-09-22 17:05:30 EDT
Patch committed to HEAD, Fixed