Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
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
Openfire
Commits
4a8af392
Commit
4a8af392
authored
Mar 24, 2016
by
Dave Cridland
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #543 from cliffchung/master
Fixing NPE in RemoteSession
parents
e7fa892b
f6ba4f7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
RemoteSession.java
...g/jivesoftware/openfire/plugin/session/RemoteSession.java
+10
-5
No files found.
src/plugins/hazelcast/src/java/org/jivesoftware/openfire/plugin/session/RemoteSession.java
View file @
4a8af392
...
...
@@ -109,12 +109,14 @@ public abstract class RemoteSession implements Session {
public
long
getNumClientPackets
()
{
ClusterTask
task
=
getRemoteSessionTask
(
RemoteSessionTask
.
Operation
.
getNumClientPackets
);
return
(
Long
)
doSynchronousClusterTask
(
task
);
final
Object
clusterTaskResult
=
doSynchronousClusterTask
(
task
);
return
clusterTaskResult
==
null
?
-
1
:
(
Long
)
clusterTaskResult
;
}
public
long
getNumServerPackets
()
{
ClusterTask
task
=
getRemoteSessionTask
(
RemoteSessionTask
.
Operation
.
getNumServerPackets
);
return
(
Long
)
doSynchronousClusterTask
(
task
);
final
Object
clusterTaskResult
=
doSynchronousClusterTask
(
task
);
return
clusterTaskResult
==
null
?
-
1
:
(
Long
)
clusterTaskResult
;
}
public
String
getCipherSuiteName
()
{
...
...
@@ -137,12 +139,14 @@ public abstract class RemoteSession implements Session {
public
boolean
isClosed
()
{
ClusterTask
task
=
getRemoteSessionTask
(
RemoteSessionTask
.
Operation
.
isClosed
);
return
(
Boolean
)
doSynchronousClusterTask
(
task
);
final
Object
clusterTaskResult
=
doSynchronousClusterTask
(
task
);
return
clusterTaskResult
==
null
?
false
:
(
Boolean
)
clusterTaskResult
;
}
public
boolean
isSecure
()
{
ClusterTask
task
=
getRemoteSessionTask
(
RemoteSessionTask
.
Operation
.
isSecure
);
return
(
Boolean
)
doSynchronousClusterTask
(
task
);
final
Object
clusterTaskResult
=
doSynchronousClusterTask
(
task
);
return
clusterTaskResult
==
null
?
false
:
(
Boolean
)
clusterTaskResult
;
}
public
String
getHostAddress
()
throws
UnknownHostException
{
...
...
@@ -167,7 +171,8 @@ public abstract class RemoteSession implements Session {
public
boolean
validate
()
{
ClusterTask
task
=
getRemoteSessionTask
(
RemoteSessionTask
.
Operation
.
validate
);
return
(
Boolean
)
doSynchronousClusterTask
(
task
);
final
Object
clusterTaskResult
=
doSynchronousClusterTask
(
task
);
return
clusterTaskResult
==
null
?
false
:
(
Boolean
)
clusterTaskResult
;
}
abstract
RemoteSessionTask
getRemoteSessionTask
(
RemoteSessionTask
.
Operation
operation
);
...
...
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