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

GH-373 Fix errors in the findByInstanceOf method #373

Merged
merged 1 commit into from
Feb 12, 2024
Merged

GH-373 Fix errors in the findByInstanceOf method #373

merged 1 commit into from
Feb 12, 2024

Conversation

huanmeng-qwq
Copy link
Contributor

java.lang.NullPointerException
	at java.util.Objects.requireNonNull(Objects.java:203)
	at java.util.Optional.<init>(Optional.java:96)
	at java.util.Optional.of(Optional.java:108)
	at dev.rollczi.litecommands.util.MapUtil.findByInstanceOf(MapUtil.java:20)
	at dev.rollczi.litecommands.invocation.InvocationContext.get(InvocationContext.java:18)

InvocationContext.Builder#put(java.lang.Class, T) The value of may be null

@huanmeng-qwq
Copy link
Contributor Author

@Rollczi

@Rollczi
Copy link
Owner

Rollczi commented Feb 12, 2024

Thanks @huanmeng-qwq ❤️

@Rollczi Rollczi changed the title Fix errors in the findByInstanceOf method GH-373 Fix errors in the findByInstanceOf method Feb 12, 2024
@Rollczi Rollczi merged commit 3e0ff13 into Rollczi:master Feb 12, 2024
6 checks passed
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.

None yet

2 participants