Fixed null deref by adding null check.

If factory methods weren't "auto-initialized", a null dereference
would occur in this codepath.

Change-Id: Ic5298701844be1f252a92871031a2ede93059dfa
Fixed more clang warnings about 'rule of three' violations

These classes need their dtor, and so I've provided
declarations to suppress the implicit creation of
copy ctors and copy assignments.

Change-Id: I0bad63e29e1265a9228de888f8d1a6ce34507e9c
Merge topic 'more-rule-of-three' into master

35848f56 Fixed more clang warnings about 'rule of three' violations
Merge topic 'auto-init-null-deref' into master

eb22e916 Fixed null deref by adding null check.