Fixed NULL pointer dereferencing in linked lists
Merge pull request #271 from GoaLitiuM/master

Fixed NULL pointer dereferencing in linked lists