[Bug v1.1.5] Null Reference Exception in GenerateLocationListsTask.cs line 114

I’ve discovered a bug when Built In Data is set as “Default”, the GenerateLocationListsTask is throwing a null reference exception when building the addressables. This is because var bagSchema = group.GetSchema<BundledAssetGroupSchema>(); on line 113 is null.

When the default is set to another asset group other than Built In Data then it doesn’t throw the null reference.
It makes sense because the Built In Data doesn’t have a BundledAssetGroupSchema.

Thanks for the post, this has come up elsewhere. We’ve got the easy fix in to make sure we don’t de-reference null. the more complex fix of controlling which groups can be “default” is a bit more complex. We’re working on that one.

1 Like