Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Speculative fixes for keyboard crashes. Fixes #1821
- Loading branch information
1 parent
6090cf4
commit cfd18f2
Showing
2 changed files
with
14 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cfd18f2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like the crash happens at
ExtractedText extracted = aConnection.getExtractedText(new ExtractedTextRequest(),0);
when there is ajava.lang.NullPointerException
. It looks good to me to do these string check to avoid null ptr access.