Can you provide updated code? Did you call r.openFile() BEFORE getZender()?