Crash if the returned values in ValueDropdown contains null

Issue #259 resolved
wavebit created an issue
    [SerializeField]
    [ValueDropdown("NamespaceDropdown")]
    private string Namespace; // object is nullable

    public string[] NamespaceDropdown()
    {
        return Assembly.GetExecutingAssembly().GetTypes()
            .Select(t => t.Namespace).Distinct()   //.Skip(1) The first is null.
            .ToArray();
    }

Comments (1)

  1. Log in to comment