Issue #2824 Fix possible null pointer when site is deactivated and active table sharing was not enabled.
Change-Id: I2e741e603ade6bbb69ca103006bbcdc213f8acfc Former-commit-id:dcc068132a
[formerly883cf26c5f
] [formerly6e6570fd5a
[formerly efc59e6541342bfc3e826934e4a9a5d85dc2801b]] Former-commit-id:6e6570fd5a
Former-commit-id:f93a657fb4
This commit is contained in:
parent
c1cfe962c5
commit
13401793be
1 changed files with 4 additions and 2 deletions
|
@ -164,9 +164,11 @@ public class FetchActiveTableSrv implements ISiteActivationListener {
|
|||
*/
|
||||
@Override
|
||||
public void deactivateSite(String siteID) throws Exception {
|
||||
statusHandler.info("Deactivating FetchAT for " + siteID);
|
||||
ScheduledFuture<?> siteJob = siteJobInstanceMap.remove(siteID);
|
||||
siteJob.cancel(false);
|
||||
if (siteJob != null) {
|
||||
statusHandler.info("Deactivating FetchAT for " + siteID);
|
||||
siteJob.cancel(false);
|
||||
}
|
||||
siteConfigMap.remove(siteID);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue