Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xabber-android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
xabber-android
Commits
e7e52c09
Commit
e7e52c09
authored
Aug 25, 2013
by
Alexander Ivanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix crash when unexpected chat history received. Close #165.
parent
9cbaa82d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
MessageArchiveManager.java
...android/data/extension/archive/MessageArchiveManager.java
+8
-0
No files found.
src/com/xabber/android/data/extension/archive/MessageArchiveManager.java
View file @
e7e52c09
...
...
@@ -25,6 +25,7 @@ import org.jivesoftware.smack.packet.IQ.Type;
import
org.jivesoftware.smack.packet.Packet
;
import
com.xabber.android.data.Application
;
import
com.xabber.android.data.LogManager
;
import
com.xabber.android.data.NetworkException
;
import
com.xabber.android.data.OnLoadListener
;
import
com.xabber.android.data.account.AccountItem
;
...
...
@@ -464,6 +465,13 @@ public class MessageArchiveManager implements OnPacketListener,
return
;
ChatStorage
chatStorage
=
chatStorages
.
get
(
account
,
chat
.
getWith
(),
chat
.
getStartString
());
if
(
chatStorage
==
null
)
{
LogManager
.
w
(
this
,
"Unexpected chat "
+
chat
.
getStartString
()
+
" recevied by "
+
account
+
" from "
+
chat
.
getWith
());
chatStorage
=
new
ChatStorage
(
chat
.
getStart
());
chatStorages
.
put
(
account
,
chat
.
getWith
(),
chat
.
getStartString
(),
chatStorage
);
}
String
bareAddress
=
Jid
.
getBareAddress
(
chat
.
getWith
());
HeaderSequence
sequence
;
if
(
modification
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment