added some NULL checks
fixed copy paste errors
added some NULL checks
added some NULL checks
fixed copy paste errors
Merge branch 'sgobject_equals' into develop
Merge pull request #1092 from karlnapf/develop

some NULL checks for equals method