This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
hi all, been having a problem which for the life of me i can't figure out. The assignment requires the use of a doubly linked list ADT, but i keep getting a NullPointerException which i don't understand, chances are its something silly which i'm just not seeing well at least i hope it is. Heres what i've got, i've tracked the bug to the insertAfterCurrent() method, there are other methods that might have problems aswell and some that are downright silly, but one step at a time.
For my assignment i need to be able to create possible many lists and manipulate them. Hence this line which i think is where the problem starts but the debugger points to the insertAfterCurrent() method and the second.setPrev(after_current); line specifically. once again thanks for any halp t
Joined: May 14, 2003
I think in your test you don't want to advance after an insertion: