gary-wzl77 91333788a0 net: fix NPE when reading IP configurations
When the default gateway is not used in IP configurations,
for example the gateway info in ip configurations was fed with
custom gateway address

```
    out.writeUTF(GATEWAY_KEY);
    out.writeInt(0);  // Default route.
    out.writeInt(1);  // Have a gateway.
    out.writeUTF(staticIpConfiguration.getGateway().getHostAddress());
```

A NPE occurred.

When there is no destination, assume it is default route and use
the gateway address in all cases.

Test: manual
Change-Id: I5904efad5d277de6724f81d99e62c21ff8347caa
Signed-off-by: gary-wzl77 <gary.wang@canonical.com>
2021-11-25 22:05:31 +08:00
2021-11-19 20:38:22 +00:00
2021-05-13 08:24:32 +00:00
2021-11-08 22:02:15 -08:00
2021-11-04 14:44:07 +00:00
2021-10-13 15:39:02 -07:00
2021-11-17 22:32:57 +00:00
2019-10-09 19:38:32 +00:00
2020-07-15 13:02:35 +01:00
2020-02-19 19:36:25 -08:00
2021-01-27 12:09:16 -08:00
…
2021-04-14 22:48:32 +00:00
Description
No description provided
21 GiB
Languages
Java 73.7%
Kotlin 14%
PowerBuilder 5.8%
C++ 5.2%
AIDL 1%