Merge "Validate pointers in getDuration()"