IpSecService: Actually throw exception

Add a missing throw.

Bug: 19797138
Test: m
Test: Device boots
Change-Id: I6c6058ecc95a5b85da43a42bac2846c31cefc038
This commit is contained in:
Andreas Gampe
2017-07-11 10:25:09 -07:00
committed by Nathan Harold
parent 8086539071
commit afb01e2317

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;