[sip-comm-dev] NPE in ZrtpUtils.byteArrayCompare


#1

With two SC instances running on different machines, each with a
registrarless SIP account (of its own), "Enable support to encrypt
calls" checked and JCE Unlimited Strength Jurisdiction Policy Files
properly installed, I sometimes get the following:

     [java] java.lang.NullPointerException
     [java] at gnu.java.zrtp.utils.ZrtpUtils.byteArrayCompare(ZrtpUtils.java
:205)
     [java] at gnu.java.zrtp.ZRtp.compareCommit(ZRtp.java:1834)
     [java] at gnu.java.zrtp.ZrtpStateClass.evCommitSent(ZrtpStateClass.java
:944)
     [java] at gnu.java.zrtp.ZrtpStateClass.dispatchEvent(ZrtpStateClass.jav
     [java] at gnu.java.zrtp.ZrtpStateClass.processEvent(ZrtpStateClass.java
:237)
     [java] at gnu.java.zrtp.ZRtp.processZrtpMessage(ZRtp.java:404)
     [java] at net.java.sip.communicator.impl.media.transform.zrtp.ZRTPTrans
formEngine.reverseTransform(ZRTPTransformEngine.java:608)
     [java] at net.java.sip.communicator.impl.media.transform.TransformInput
Stream.run(TransformInputStream.java:218)
     [java] at java.lang.Thread.run(Thread.java:619)

···

a:279)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#2

Lubo,

I've never seen this during my tests here (but other strange effects inside
SC - independent of ZRTP). I checked the code: the method compares two
byte arrays. The funny thing is: just a couple of lines before both
arrays were set and initialized.

Regards,
Werner

Lubomir Marinov schrieb:

···

With two SC instances running on different machines, each with a
registrarless SIP account (of its own), "Enable support to encrypt
calls" checked and JCE Unlimited Strength Jurisdiction Policy Files
properly installed, I sometimes get the following:

     [java] java.lang.NullPointerException
     [java] at gnu.java.zrtp.utils.ZrtpUtils.byteArrayCompare(ZrtpUtils.java
:205)
     [java] at gnu.java.zrtp.ZRtp.compareCommit(ZRtp.java:1834)
     [java] at gnu.java.zrtp.ZrtpStateClass.evCommitSent(ZrtpStateClass.java
:944)
     [java] at gnu.java.zrtp.ZrtpStateClass.dispatchEvent(ZrtpStateClass.jav
a:279)
     [java] at gnu.java.zrtp.ZrtpStateClass.processEvent(ZrtpStateClass.java
:237)
     [java] at gnu.java.zrtp.ZRtp.processZrtpMessage(ZRtp.java:404)
     [java] at net.java.sip.communicator.impl.media.transform.zrtp.ZRTPTrans
formEngine.reverseTransform(ZRTPTransformEngine.java:608)
     [java] at net.java.sip.communicator.impl.media.transform.TransformInput
Stream.run(TransformInputStream.java:218)
     [java] at java.lang.Thread.run(Thread.java:619)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net