Community
Participate
Working Groups
Build ID: I20070503-1400 Steps To Reproduce: 1. Calling IPDOMManager#setDefaultIndexerId results in a null pointer exception More information: Some of our JUnit tests disable the indexer in during setup so it's not running while we're testing project creation, etc.. We do something like this: CCorePlugin.getIndexManager().setDefaultIndexerId(IPDOMManager.ID_NO_INDEXER); But that causes a NPE as easily seen by the code below. public void setDefaultIndexerId(String indexerId) { setIndexerId(null, indexerId); } public void setIndexerId(final ICProject project, String indexerId) { IProject prj= project.getProject(); IndexerPreferences.set(prj, IndexerPreferences.KEY_INDEXER_ID, indexerId); CCoreInternals.savePreferences(prj); } The attached patch should fix the problem.
Created attachment 68383 [details] patch file
Thanks, I have applied your patch.
assigning
done