Need help with the crashing on AT4

Ok, this is not entirely related to FireCore but I’ve been struggling with fixing the crashing problem on my aTV 4. I followed these intrusions but it looks like they’re missing a few more lines of code so I can’t necessary resolve the issue. Anyone with good suggestions?