Fix potential NULL dereference on bad usage
2 files changed