Merge "IpSecService: Actually throw exception"

This commit is contained in:
Treehugger Robot
2017-07-12 01:17:19 +00:00
committed by Gerrit Code Review

View File

@@ -343,7 +343,7 @@ public class IpSecService extends IIpSecService.Stub {
public void setOwnedByTransform() {
if (mOwnedByTransform) {
// Programming error
new IllegalStateException("Cannot own an SPI twice!");
throw new IllegalStateException("Cannot own an SPI twice!");
}
mOwnedByTransform = true;