Community
Participate
Working Groups
The service model configuration is saved using an IMemento when the workbench is shut down. The problem with this is that if the workbench is terminated abnormally the service model does not get saved. Then when restarting eclipse the configuration is not available, this causes IServiceConfiguration.getServiceProvider() to return null, and I start getting NPEs all over the place. I think the fix is to save the memento on all workspace saves, including snapshots. Also code that calls getServiceProvider() should take into account that it may return null.
Created attachment 111628 [details] proposed patch
Actually I'm still having some problems with the configuration not saving. There seems to be an NPE originating from inside saveModelConfiguration() which prevents the memento from being saved. I'm going to dig a bit deeper.
Created attachment 111679 [details] better patch
Applied to HEAD. Thanks.