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

Avoid read(URL) throwing NPE for invalid URLs #1272

Merged

Conversation

ccleva
Copy link
Contributor

@ccleva ccleva commented Jan 3, 2025

Thanks for contributing.

Description

If DataFrameReader.read(URL) is called with an invalid URL a NPE is thrown. Code refactored to throw either RuntimeIOException (when the URL has a known file extension) or IllegalArgumentException if not.

Testing

Yes

@benmccann benmccann merged commit 0dca618 into jtablesaw:master Jan 3, 2025
7 checks passed
@ccleva ccleva deleted the fix_NPE_in_read_with_invalid_url branch January 3, 2025 17:58
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