summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorAdam Newman <homebrew@google.com>2018-03-27 10:10:43 -0700
committerAdam Newman <homebrew@google.com>2018-03-27 11:20:20 -0700
commitc1b4efb4bea2a0364822a8160f74e4557b18e913 (patch)
tree173c47c04aec7de83ca0cad37486cbd271dc2673 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentabe80b8dfda459def0a747962826fed871725fc6 (diff)
Fix CaptivePortalLoginActivity null String crash
In getHeaderTitle if NetworkInfo.getExtraInfo() returns null the call to replaceAll will result in an NPE and if the string weren't null an empty string would set the title to "Sign in to ". Add a TextUtils.isEmpty check before displaying the formatted title to temporarily fix the NPE until an alternative method to obtain SSID is implemented. Bug: 77114259 Test: Manually launching with a captive portal network. Change-Id: I3ce9a6dc65cceb9344700803966d4f0aa12d894c
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions