mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 07:05:24 +02:00
[243128] Problem during migration - NPE found in RSEPersistenceManager
https://bugs.eclipse.org/bugs/show_bug.cgi?id=243128
This commit is contained in:
parent
7060404b1b
commit
09758be2bc
1 changed files with 2 additions and 1 deletions
|
@ -22,6 +22,7 @@
|
|||
* David Dykstal (IBM) - [226728] NPE during init with clean workspace
|
||||
* David Dykstal (IBM) - [197027] Can lose data if closing eclipse before profile is saved
|
||||
* Kevin Doyle (IBM) - [243821] Save occurring on Main Thread
|
||||
* David Dykstal (IBM) - [243128] Problem during migration - NPE if provider does save without using a job.
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.persistence;
|
||||
|
@ -551,8 +552,8 @@ public class RSEPersistenceManager implements IRSEPersistenceManager {
|
|||
cleanTree(profile);
|
||||
if (dom.needsSave()) {
|
||||
Job job = provider.getSaveJob(dom);
|
||||
job.addJobChangeListener(jobChangeListener);
|
||||
if (job != null && canScheduleSave) {
|
||||
job.addJobChangeListener(jobChangeListener);
|
||||
job.schedule(2000); // two second delay
|
||||
} else {
|
||||
provider.saveRSEDOM(dom, new NullProgressMonitor());
|
||||
|
|
Loading…
Add table
Reference in a new issue