Skip to content

Commit

Permalink
Fix NullPointerException.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjansche committed Sep 8, 2016
1 parent dc01d41 commit 0829bc3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ private CharSequence getTextFromClipboard() {

private void handlePasteFromZawgyi() {
CharSequence text = getTextFromClipboard();
if (text.length() == 0) {
if (text == null || text.length() == 0) {
return;
}
InputConnection ic = getCurrentInputConnection();
Expand Down

0 comments on commit 0829bc3

Please sign in to comment.