You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix out of OOB error for ConversationHistory (#5770)
Summary:
When user clears chat history and then give a prompt, there is a OOB error. This occurs since `getRecentSavedTextMessages()` didn't check for an empty Message Arraylist.
Pull Request resolved: #5770
Reviewed By: Riandy
Differential Revision: D63659827
Pulled By: cmodi-meta
fbshipit-source-id: 1e3157a8f1c17cb1e4b94f9ff7287b53a2b4f2af
Copy file name to clipboardExpand all lines: examples/demo-apps/android/LlamaDemo/app/src/main/java/com/example/executorchllamademo/MessageAdapter.java
+21-17Lines changed: 21 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -95,28 +95,32 @@ public ArrayList<Message> getSavedMessages() {
0 commit comments