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

Bug 355110

Summary: NPE in RemoteIndexerTask.run() when using the local indexing provider
Product: [Tools] PTP Reporter: Chris Recoskie <recoskie>
Component: RDTAssignee: Chris Recoskie <recoskie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ptp-inbox
Version: 4.0.7   
Target Milestone: 5.0.2   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
patch recoskie: iplog-

Description Chris Recoskie CLA 2011-08-18 11:57:18 EDT
Created attachment 201726 [details]
patch

Sometimes when switching back and forth between using the local provider and the remote provider, the remote indexer ends up running before the service provider is properly switched, and this can cause an NPE.  A simple null check avoids it.
Comment 1 Chris Recoskie CLA 2011-08-18 11:59:26 EDT
Fixed on ptp_4_1, ptp_5_0, and HEAD.