Skip to content

Nil from datasource #39

Description

@mackworth

I had a problem with names appearing as N(Null). I tracked it down to my datasource returning nil instead of @"". As this is easy to protect against, it would seem useful to do so:

Change line 234 in commitAutoCompleteText of HTAutocompleteTextField.m from

if ([self.autocompleteString isEqualToString:@""] == NO

to

if (self.autocompleteString.length > 0

as you do in refreshAutocompleteText

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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