[fix] Initialize members, fix null deferencing, check return values...