Merge "IpSecService: Actually throw exception"

am: 3eff26449f

Change-Id: I415b249d564c5ffdd2d9381b53a31dd6f6c18eab
This commit is contained in:
Andreas Gampe
2017-07-12 01:29:47 +00:00
committed by android-build-merger

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;