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

NullpointerException in Crowd#addAgent #38

Closed
MeFisto94 opened this issue Jan 7, 2019 · 0 comments
Closed

NullpointerException in Crowd#addAgent #38

MeFisto94 opened this issue Jan 7, 2019 · 0 comments

Comments

@MeFisto94
Copy link

java.lang.NullPointerException
	at org.recast4j.detour.DetourCommon.vCopy(DetourCommon.java:99)
	at org.recast4j.detour.crowd.PathCorridor.reset(PathCorridor.java:204)
	at org.recast4j.detour.crowd.Crowd.addAgent(Crowd.java:530)

Recast works around this like this
I don't know if that's possible in recast4j, but probably desireable to throw an IllegalArgumentException with "Unable to find poly ref" or something then

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

No branches or pull requests

1 participant