[Issue 10317] New: Potential null-pointer-dereference