Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException at transferDone() in DecisionEngineRouter.java #9

Open
oleotiger opened this issue Mar 29, 2018 · 0 comments
Open

Comments

@oleotiger
Copy link

oleotiger commented Mar 29, 2018

In DecisionEngineRouter.java ,
Message transferred = this.getMessage(con.getMessage().getId()); may get transferred=null as con.getMessage() will return a message which is not in messages in this router already. getMessage() will return null on this condition.

This may occur when eg. M25 is transferred to N12 while the destination of M25 is N16 and N16 has received the message. Tuple <M25,N1>, <M25,N16>, <M25, N2> are added to outgoingMessages. In startTransfer() when test <M25,N16> , M25 should be deleted on N12. But tuple <M25,N2> is still in outgoingMessages and startTransfer() will return rcv_ok.

What's more, when a message is delete for ttl but it's still on transferring, what will happen? I think the transmission should be aborted but I didn't find where the program handle this situation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant