I fixed this, the findClosestKey method was using searchKey != null to check that maskKey was actually in the datastore, but I added null references. I changed it to h.get(maskKey) and I can no longer reproduce the bug.
It was my fault. Sorry. On Sat, 22 Apr 2000, hal at finney.org wrote: > > kmm.lastAttempt keeps coming back as the same value, which suggests > > to me that findClosestKey() is doing something wrong. Strangely > > enough, kmm.lastAttempt is not very far from searchKey (searchKey > > = 33E9505D12942E8259A3C96FB6F88ED325B95797, kmm.lastAttempt = > > 3309CB034F7B337E9FADF0AEBC0D869DB92195B6). > > > > I'll leave a debugger pointed at the thread, in case someone else who > > better understands this code wants me to poke at it. > > Hmmm, hard to say what could be happening. Can you see what value is > in indx upon the return from findNextClosestPos, in findClosestKey? > > It might be useful to know what version of Java you are running, whether > it is compiled, etc. > > Hal > > _______________________________________________ > Freenet-dev mailing list > Freenet-dev at lists.sourceforge.net > http://lists.sourceforge.net/mailman/listinfo/freenet-dev -- Oskar Sandberg md98-osa at nada.kth.se #!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj $/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1 lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/) _______________________________________________ Freenet-dev mailing list Freenet-dev at lists.sourceforge.net http://lists.sourceforge.net/mailman/listinfo/freenet-dev
