mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-17 22:15:23 +02:00
[246789] - Added a missing null check.
This commit is contained in:
parent
0e70351e3f
commit
4837793d14
1 changed files with 7 additions and 5 deletions
|
@ -155,12 +155,14 @@ abstract public class Sequence extends DsfRunnable implements Future<Object> {
|
||||||
fRollbackTaskName = rollbackTaskName;
|
fRollbackTaskName = rollbackTaskName;
|
||||||
fRequestMonitor = rm;
|
fRequestMonitor = rm;
|
||||||
|
|
||||||
|
if (fRequestMonitor != null) {
|
||||||
fRequestMonitor.addCancelListener(new ICanceledListener() {
|
fRequestMonitor.addCancelListener(new ICanceledListener() {
|
||||||
public void requestCanceled(RequestMonitor rm) {
|
public void requestCanceled(RequestMonitor rm) {
|
||||||
fSync.doCancel();
|
fSync.doCancel();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the steps to be executed. It is up to the deriving class to
|
* Returns the steps to be executed. It is up to the deriving class to
|
||||||
|
|
Loading…
Add table
Reference in a new issue