Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AloqaIM-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
AloqaIM-Android
Commits
9c00b01c
Commit
9c00b01c
authored
Dec 18, 2016
by
Yusuke Iwaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix NPE
parent
fe166ecf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
MethodCall.java
...n/java/chat/rocket/android/model/internal/MethodCall.java
+6
-0
No files found.
app/src/main/java/chat/rocket/android/model/internal/MethodCall.java
View file @
9c00b01c
...
@@ -52,6 +52,12 @@ public class MethodCall extends RealmObject {
...
@@ -52,6 +52,12 @@ public class MethodCall extends RealmObject {
realmHelper
.
createObjectObserver
(
realm
->
realmHelper
.
createObjectObserver
(
realm
->
realm
.
where
(
MethodCall
.
class
).
equalTo
(
"methodCallId"
,
newId
));
realm
.
where
(
MethodCall
.
class
).
equalTo
(
"methodCallId"
,
newId
));
observer
.
setOnUpdateListener
(
methodCall
->
{
observer
.
setOnUpdateListener
(
methodCall
->
{
if
(
methodCall
==
null
)
{
observer
.
unsub
();
REF_MAP
.
remove
(
newId
);
return
;
}
int
syncstate
=
methodCall
.
getSyncState
();
int
syncstate
=
methodCall
.
getSyncState
();
RCLog
.
d
(
"MethodCall[%s] syncstate=%d"
,
methodCall
.
getMethodCallId
(),
syncstate
);
RCLog
.
d
(
"MethodCall[%s] syncstate=%d"
,
methodCall
.
getMethodCallId
(),
syncstate
);
if
(
syncstate
==
SyncState
.
SYNCED
)
{
if
(
syncstate
==
SyncState
.
SYNCED
)
{
...
...
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