Summary: | NPE when searching java method | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Carsten Kaiser <carsten.kaiser> |
Component: | Core | Assignee: | Jerome Lanneluc <jerome_lanneluc> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | major | ||
Priority: | P2 | CC: | jerome_lanneluc |
Version: | 2.0 | ||
Target Milestone: | 2.1 M1 | ||
Hardware: | PC | ||
OS: | Windows NT | ||
Whiteboard: |
Description
Carsten Kaiser
2002-06-17 08:45:56 EDT
This appears to be a very rare race condition. The code were the NPE is thrown is: if (this.thread != null) { this.thread.setPriority(originalPriority); // line 247 } The 'thread' field is only set to null on shut down, or if a RuntimeException is thrown by the background indexer (and this is only temporary, as a new thread is created right away). A subsequent search should work. Another possibility is a JIT bug. In this case, there is nothing we can do. Need to investigate, post 2.0 Reopening Clearing resolution Fixed in HEAD by using a local variable to avoid the race condition. Verified |