Skip to content

Uses result of next() to return empty optional if query is invalid - #41

Open
Wyzards wants to merge 1 commit into
mainfrom
hotfix-empty-sql-set-operations
Open

Uses result of next() to return empty optional if query is invalid#41
Wyzards wants to merge 1 commit into
mainfrom
hotfix-empty-sql-set-operations

Conversation

@Wyzards

@Wyzards Wyzards commented Jun 23, 2022

Copy link
Copy Markdown
Member

Return Empty If !next()

This is the Issue Title

Changes made

  • Checks for the return value of next() for MySQL results. If false, return an empty optional for name and uuid queries

How does the solution address the problem

This PR will prevent getString() from being called when no string is present, which was previously throwing an error any time a nonexistant player was requested.

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