mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
avoid NPE which prevents parser test suite from being run as not a
plugin test.
This commit is contained in:
parent
abf050d657
commit
e37ca5ef26
1 changed files with 20 additions and 18 deletions
|
@ -93,6 +93,7 @@ public class CompleteParsePluginTest extends TestCase {
|
||||||
static FileManager fileManager;
|
static FileManager fileManager;
|
||||||
|
|
||||||
{
|
{
|
||||||
|
if( CCorePlugin.getDefault() != null && CCorePlugin.getDefault().getCoreModel() != null){
|
||||||
(CCorePlugin.getDefault().getCoreModel().getIndexManager()).reset();
|
(CCorePlugin.getDefault().getCoreModel().getIndexManager()).reset();
|
||||||
monitor = new NullProgressMonitor();
|
monitor = new NullProgressMonitor();
|
||||||
|
|
||||||
|
@ -113,6 +114,7 @@ public class CompleteParsePluginTest extends TestCase {
|
||||||
//Create file manager
|
//Create file manager
|
||||||
fileManager = new FileManager();
|
fileManager = new FileManager();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public CompleteParsePluginTest()
|
public CompleteParsePluginTest()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue