Skip to content

Commit

Permalink
fix: prevent NPE of CompositionPopupWindow
Browse files Browse the repository at this point in the history
  • Loading branch information
goofyz committed Jan 22, 2024
1 parent 30cb7c0 commit 651e97c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/main/java/com/osfans/trime/ime/core/Trime.java
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,9 @@ public void onDestroy() {
listener.onDestroy();
}
eventListeners.clear();
mCompositionPopupWindow.destroy();
if (mCompositionPopupWindow != null) {
mCompositionPopupWindow.destroy();
}
super.onDestroy();

self = null;
Expand Down

0 comments on commit 651e97c

Please sign in to comment.