Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter falsey _npmUser values #95

Merged
merged 1 commit into from
Aug 1, 2014
Merged

Conversation

jgoz
Copy link
Contributor

@jgoz jgoz commented Aug 1, 2014

Some packages that were published with much older versions of npm (e.g., 1.0.x) don't have maintainers or _npmUser fields in their package.json files. This triggers a client-side error when doing npm search because the maintainers field will be [null] and the npm client attempts to read the name field on a null value.

This patch filters falsey _npmUser values, which prevents the client crash.

rlidwka added a commit that referenced this pull request Aug 1, 2014
Filter falsey _npmUser values
@rlidwka rlidwka merged commit 4660dd3 into rlidwka:master Aug 1, 2014
@rlidwka
Copy link
Owner

rlidwka commented Aug 1, 2014

Thanks, good catch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants