Thanks for the fast response!

I went through some tests and it turns out I had an empty pointer in one of my structs.
Sorry for the trouble.