Argument with 'nonnull' attribute passed null

(cherry picked from commit fbf682c865c55dc30e3439c977b8c16cb54702ba)
Regenerated build/
Merge pull request #1789 from sjinks/1.2.5

[1.2.5] Fix errors found by static code analyzers