Merge "IpSecService: Actually throw exception" am: 3eff26449f am: 50f53691de

am: d7c0357277

Change-Id: I9d5b81d6f62b6d8ff7561d908c6d61b4a21c7419
This commit is contained in:
Andreas Gampe
2017-07-12 01:43:13 +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;