Skip to content

"Refresh Assembly Import Settings" throwing null-reference exception #74

Description

@JeReT

Hi,

When having the odin serializer dll in a package (probably also when in Assets), an option in the tools menu appears:

Image

When clicking it, I get an exception:

NullReferenceException: Object reference not set to an instance of an object
OdinSerializer.Utilities.Editor.OdinAssemblyImportSettingsUtility.ApplyImportSettings (System.String assemblyFilePath, System.Boolean includeInBuild, System.Boolean includeInEditor) (at C:/Sirenix/OdinSerializer/OdinSerializer/Config/AssemblyBuildInfo.cs:146)
OdinSerializer.Utilities.Editor.OdinAssemblyImportSettingsUtility.ApplyImportSettings (System.String assemblyFilePath, OdinSerializer.Utilities.Editor.AssemblyImportSettings importSettings) (at C:/Sirenix/OdinSerializer/OdinSerializer/Config/AssemblyBuildInfo.cs:118)
OdinSerializer.Utilities.Editor.JITImportSettingsConfig.Apply () (at C:/Sirenix/OdinSerializer/OdinSerializer/Config/AssemblyBuildInfo.cs:187)
OdinSerializer.Utilities.Editor.OdinSerializationBuiltSettingsConfig.RefreshAssemblyImportSettings () (at C:/Sirenix/OdinSerializer/OdinSerializer/Config/AssemblyBuildInfo.cs:74)

I don't know what this option is for, but I would like to have it removed entirely.
I don't think I need that for the extension I am creating. If somebody needs it, the menu entry can easily be created in the user's code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions