Getting SIGSEV error in JTREE

I am getting SIGSEV error in the code.I am unable to figure out my bug.Please help me out.
problem:-Contest Page | CodeChef
solution:-Solution: 49399316 | CodeChef
Thanks for helping in advance.