Skip to content

Commit

Permalink
fix null pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
PangBaiWork committed Mar 22, 2024
1 parent 2ae822f commit a289c33
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -458,8 +458,10 @@ void checkProcess(MenuItem item) {
@Override
protected void onDestroy() {
//binding.editor.setEditorLanguage(null);
binding.editor.release();
markdown.destroyWebView();
if (binding!=null) {
binding.editor.release();
markdown.destroyWebView();
}
super.onDestroy();
}
}

0 comments on commit a289c33

Please sign in to comment.