Commit 6d42c2aa authored by guus's avatar guus

x == Double.NaN is always false, even if x is Double.NaN. Use Double.isNan(x) instead.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10253 b35dd754-fafc-0310-a699-88a17e54d16e
parent a8662f8a
...@@ -384,7 +384,7 @@ public class HttpSession extends LocalClientSession { ...@@ -384,7 +384,7 @@ public class HttpSession extends LocalClientSession {
* @return the version of the BOSH XEP which the client is utilizing. * @return the version of the BOSH XEP which the client is utilizing.
*/ */
public double getVersion() { public double getVersion() {
if (this.version != Double.NaN) { if (!Double.isNaN(this.version)) {
return this.version; return this.version;
} }
else { else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment