clang: Null pointer passed as an argument to a 'nonnull' parameter #1090