Solution: check for failure and do not access any members afterwards
Attach a file by drag & drop or click to upload