1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-02 06:35:28 +02:00

[246789] - Added a missing null check.

This commit is contained in:
Pawel Piech 2008-09-09 21:22:26 +00:00
parent 0e70351e3f
commit 4837793d14

View file

@ -155,11 +155,13 @@ abstract public class Sequence extends DsfRunnable implements Future<Object> {
fRollbackTaskName = rollbackTaskName;
fRequestMonitor = rm;
fRequestMonitor.addCancelListener(new ICanceledListener() {
public void requestCanceled(RequestMonitor rm) {
fSync.doCancel();
}
});
if (fRequestMonitor != null) {
fRequestMonitor.addCancelListener(new ICanceledListener() {
public void requestCanceled(RequestMonitor rm) {
fSync.doCancel();
}
});
}
}
/**