prevent null pointer in pose()

prevent null pointer exception in the code below, which adds elements to the list.