SFMRECON: insert NULL checks to fix crash