Merge "Fixed NullPointerException in IpSecService-Netd binder layer"

am: bf74a93eb2

Change-Id: Ia73c6bda7cb265f91648139e15f4bd2668e6c531
This commit is contained in:
Manoj Boopathi Raj
2017-10-27 17:47:08 +00:00
committed by android-build-merger
2 changed files with 9 additions and 9 deletions

View File

@@ -944,13 +944,13 @@ public class IpSecService extends IIpSecService.Stub {
(c.getNetwork() != null) ? c.getNetwork().getNetworkHandle() : 0, (c.getNetwork() != null) ? c.getNetwork().getNetworkHandle() : 0,
spi, spi,
(auth != null) ? auth.getName() : "", (auth != null) ? auth.getName() : "",
(auth != null) ? auth.getKey() : null, (auth != null) ? auth.getKey() : new byte[] {},
(auth != null) ? auth.getTruncationLengthBits() : 0, (auth != null) ? auth.getTruncationLengthBits() : 0,
(crypt != null) ? crypt.getName() : "", (crypt != null) ? crypt.getName() : "",
(crypt != null) ? crypt.getKey() : null, (crypt != null) ? crypt.getKey() : new byte[] {},
(crypt != null) ? crypt.getTruncationLengthBits() : 0, (crypt != null) ? crypt.getTruncationLengthBits() : 0,
(authCrypt != null) ? authCrypt.getName() : "", (authCrypt != null) ? authCrypt.getName() : "",
(authCrypt != null) ? authCrypt.getKey() : null, (authCrypt != null) ? authCrypt.getKey() : new byte[] {},
(authCrypt != null) ? authCrypt.getTruncationLengthBits() : 0, (authCrypt != null) ? authCrypt.getTruncationLengthBits() : 0,
encapType, encapType,
encapLocalPort, encapLocalPort,

View File

@@ -206,7 +206,7 @@ public class IpSecServiceParameterizedTest {
eq(CRYPT_KEY), eq(CRYPT_KEY),
anyInt(), anyInt(),
eq(""), eq(""),
isNull(), eq(new byte[] {}),
eq(0), eq(0),
anyInt(), anyInt(),
anyInt(), anyInt(),
@@ -227,7 +227,7 @@ public class IpSecServiceParameterizedTest {
eq(CRYPT_KEY), eq(CRYPT_KEY),
anyInt(), anyInt(),
eq(""), eq(""),
isNull(), eq(new byte[] {}),
eq(0), eq(0),
anyInt(), anyInt(),
anyInt(), anyInt(),
@@ -256,10 +256,10 @@ public class IpSecServiceParameterizedTest {
anyLong(), anyLong(),
eq(TEST_SPI_OUT), eq(TEST_SPI_OUT),
eq(""), eq(""),
isNull(), eq(new byte[] {}),
eq(0), eq(0),
eq(""), eq(""),
isNull(), eq(new byte[] {}),
eq(0), eq(0),
eq(IpSecAlgorithm.AUTH_CRYPT_AES_GCM), eq(IpSecAlgorithm.AUTH_CRYPT_AES_GCM),
eq(CRYPT_KEY), eq(CRYPT_KEY),
@@ -277,10 +277,10 @@ public class IpSecServiceParameterizedTest {
anyLong(), anyLong(),
eq(TEST_SPI_IN), eq(TEST_SPI_IN),
eq(""), eq(""),
isNull(), eq(new byte[] {}),
eq(0), eq(0),
eq(""), eq(""),
isNull(), eq(new byte[] {}),
eq(0), eq(0),
eq(IpSecAlgorithm.AUTH_CRYPT_AES_GCM), eq(IpSecAlgorithm.AUTH_CRYPT_AES_GCM),
eq(CRYPT_KEY), eq(CRYPT_KEY),