summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/DrawFrameTask.cpp
diff options
context:
space:
mode:
authorMatt Lee <matthewhlee@google.com>2022-02-09 10:45:31 -0800
committerMatt Lee <matthewhlee@google.com>2022-02-09 18:54:19 +0000
commitefd8208b73da99c0591f66a135d130aa68422953 (patch)
treeed9b1085f7546e648e2a4f939c3a6d0ca0af14d1 /libs/hwui/renderthread/DrawFrameTask.cpp
parentda6b9c57a64df79394898e41d8f31b2bed70651c (diff)
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. Bug: 218613243 Test: manual Original Author: Gary Wang <gary.wang@canonical.com> Change-Id: I5904efad5d277de6724f81d99e62c21ff8347caa Signed-off-by: gary-wzl77 <gary.wang@canonical.com> (cherry picked from commit 91333788a0df38b2edeb5bcedd1f46e2cac9eb54)
Diffstat (limited to 'libs/hwui/renderthread/DrawFrameTask.cpp')
0 files changed, 0 insertions, 0 deletions