#9 NullPointerException when inserting a value - single peer

1.0.5
open-later
9
2009-04-18
2008-06-13
Anonymous
No

First reported in the mailing list:
http://sourceforge.net/mailarchive/forum.php?thread_name=a2343aec0806070457u5f6a2635k65ae2da3725a528b%40mail.gmail.com&forum_name=open-chord-users

When the network consists of a single peer a NullPointerException is caused by inserting a value into the DHT.

Discussion

  • Nobody/Anonymous

    hi,I have met this problems.when I try to debug it,I find the codes between the version 1.04 and the version 1.05 are different!
    version 1.0.4 Nodeimpl.java (246-251)
    if ((this.references.getPredecessor() != null)
    && !toInsert.getId().isInInterval(
    this.references.getPredecessor().nodeID, this.nodeID)) {
    this.references.getPredecessor().insertEntry(toInsert);
    return;
    }
    version 1.0.5 Nodeimpl.java (246-251)
    if ((this.references.getPredecessor() == null)
    || !toInsert.getId().isInInterval(
    this.references.getPredecessor().getNodeID(), this.nodeID)) {
    this.references.getPredecessor().insertEntry(toInsert);
    return;
    }
    so I try to use these codes in the version 1.0.4 to replace that codes in the version 1.0.5,then complie again,then success!

     
  • Sven Kaffille

    Sven Kaffille - 2009-04-18
    • milestone: --> 1.0.5
    • priority: 5 --> 9
    • status: open --> open-postponed
     
  • Sven Kaffille

    Sven Kaffille - 2009-04-18
    • assigned_to: nobody --> skaffille
     
  • Sven Kaffille

    Sven Kaffille - 2009-04-18
    • status: open-postponed --> open-later
     
  • Nobody/Anonymous

    Hi, thanks a lot Nobody, i did the same what you did and it`s worked properly!!!!
    Thank you again and all who develope the open chord

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks