-Bug fixed on nullpointerexception