Check for hOpts && hOpts.hExtras before checking hOpts.hExtras.nSize.