commit | a591d7a08262bf29336cc60bd3981e804e063ba2 | [log] [tgz] |
---|---|---|
author | Yi-Ling Chuang <emilychuang@google.com> | Wed Mar 11 16:52:44 2020 +0800 |
committer | Yi-Ling Chuang <emilychuang@google.com> | Wed Mar 11 16:52:44 2020 +0800 |
tree | 937dcf6ee0b7b4f5da5278d670b2f55e63786f42 | |
parent | b8fb854e98ab95864eebd3ad85af56b1f4eecacd [diff] |
Fix NPE when coming back to settings homepage. When users navigate back to the homepage, if there is a slice being displayed, slice callback will be triggered. It will then check if this slice has any error hint, where NPE would occur if the slice turns out to be null. Hence, add a null check before checking slice hint. Fixes: 148158780 Test: rebuild and navigate back to the homepage. Change-Id: I2b04dc0d64a223cc85f6af55b2ae2dbc5f3e1f40