check for null Promise *pp before dereferencing
Merge pull request #316 from nyetsche/archivefilenull

check for non-null Promise *pp before dereferencing