added nullpointer check in Seq::setPos(int) to avoid crash
Merge pull request #277 from heuchi/10050_crash_in_pa

Fix #10050