Added __attribute__((nonnull)) for methods that expect non-nil values. Ignored the warning for one of the unit tests.