[EMAIL PROTECTED] writes:

>     public int hashCode()
>     {
>-        return keyBuffer.hashCode();
>+        return keyBuffer.toString().hashCode();
>     }

This screams "NullPointerException" all over the place.

How about

public int hashCode() {
        return String.valueOf(keyBuffer).hashCode();
}

        Regards
                Henning


-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
[EMAIL PROTECTED]        +49 9131 50 654 0   http://www.intermeta.de/

RedHat Certified Engineer -- Jakarta Turbine Development  -- hero for hire
   Linux, Java, perl, Solaris -- Consulting, Training, Development

                      4 - 8 - 15 - 16 - 23 - 42

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to