HDDS-1756. DeleteContainerCommandHandler fails with NPE. Contributed by Nanda kumar(#1095).
This commit is contained in:
parent
7a93be0f60
commit
1502e6a22f
|
@ -137,7 +137,9 @@ public class ContainerController {
|
|||
public void deleteContainer(final long containerId, boolean force)
|
||||
throws IOException {
|
||||
final Container container = containerSet.getContainer(containerId);
|
||||
getHandler(container).deleteContainer(container, force);
|
||||
if (container != null) {
|
||||
getHandler(container).deleteContainer(container, force);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue