Getting an break at !Export.ClassIndex.IsNull()

So this is going to be kind of complicated because I’m making a plugin which is causing the error, but I know roughly what is causing it but don’t know how to fix it.

So in my plugin I am creating blueprint assets in memory and whenever I try to use the blueprint asset in the level it is fine until I try to save or it auto save throwing an error at !Export.ClassIndex.IsNull() is SavePackage.cpp line 4591.

I understand that it probably doesn’t recognize the asset I create, but I’m not sure what steps to take to make them recognized by the package saver. I am registering the assets in the asset registry using: AssetRegistryModule.AssetCreated(MyBlueprint); but I get the same errors.

If someone knows what to do I’d appreciate it.