fixed nullpointerexception in getpawnatposition