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

LongFunction存在NPE问题 #591

Closed
nkbaixiaojie opened this issue Oct 23, 2023 · 3 comments
Closed

LongFunction存在NPE问题 #591

nkbaixiaojie opened this issue Oct 23, 2023 · 3 comments
Labels

Comments

@nkbaixiaojie
Copy link

com.googlecode.aviator.runtime.function.system.LogFunction类中:

若obj的值为null,则下方代码中的obj.getClass()会抛NPE异常
throw new ClassCastException("Could not cast " + obj.getClass().getName() + " to long");

image

@killme2008
Copy link
Owner

Good catch,欢迎提个修复 PR

@killme2008 killme2008 added the bug label Dec 27, 2023
@shuailung
Copy link
Contributor

DoubleFunction和 BigIntFunction 都有类似的问题

@killme2008
Copy link
Owner

Fixed via #615

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

No branches or pull requests

3 participants