Prevent null dereference