Skip to content

Fixing null pointer exception when url doesn't have scheme#29

Open
iniyai wants to merge 2 commits intolinkedin:masterfrom
iniyai:master
Open

Fixing null pointer exception when url doesn't have scheme#29
iniyai wants to merge 2 commits intolinkedin:masterfrom
iniyai:master

Conversation

@iniyai
Copy link

@iniyai iniyai commented Feb 26, 2020

When a url's scheme is empty, "SCHEME_PORT_MAP.get(getScheme());" returns null. Comparing a null Integer with a primitive integer causes a null pointer exception. This pull requests attempts to solve this null pointer exception.

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.

1 participant