Getting nullpointer exception ... dont know why

i dont know why i am getting null pointer exception on last node of my list. on displaying the list it show the node at that place … the error is hapenning during swappping

Please share proper code . Better if you send the link to the ide.
Check your getNodeAt function.

its solved ma’am . thanku for your kind attention