commit | abe10b3e62accae7a9c218bf24ebe49754663e8a | [log] [tgz] |
---|---|---|
author | Quang Luong <qal@google.com> | Mon Apr 01 18:55:29 2019 -0700 |
committer | Quang Luong <qal@google.com> | Thu Apr 04 13:12:26 2019 -0700 |
tree | b17007184a8b75529148fd6b79b17fdb6de286f2 | |
parent | dd07ae579c291a2b6ffe09bd576fd908eb9e5ddd [diff] |
Catch ArrayIndexOutOfBoundsException in StateMachine.toString() StateMachine.toString() calls mSmHandler.getCurrentState(). In the rare case when mStateStackTopIndex is -1 due to the StateMachine being not yet initalized, this results in an ArrayIndexOutOfBoundsException. Bug: 124858416 Test: none Change-Id: Id558be95b6e12d8a923d325bca5f6f6d7f942b22