1
0
Fork 0
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:
Andrew Niefer 2004-09-10 19:57:20 +00:00
parent abf050d657
commit e37ca5ef26

View file

@ -93,6 +93,7 @@ public class CompleteParsePluginTest extends TestCase {
static FileManager fileManager;
{
if( CCorePlugin.getDefault() != null && CCorePlugin.getDefault().getCoreModel() != null){
(CCorePlugin.getDefault().getCoreModel().getIndexManager()).reset();
monitor = new NullProgressMonitor();
@ -113,6 +114,7 @@ public class CompleteParsePluginTest extends TestCase {
//Create file manager
fileManager = new FileManager();
}
}
public CompleteParsePluginTest()
{