Too Many Glyphs

Too Many Glyphs

8M Downloads

[Bug 1.18] Ray form Null pointer

JaceEthaniel opened this issue ยท 4 comments

commented

Attempting to use the Ray form on a server results in a Null Pointer exception "this.BASE_RANGE is null"

commented

Does this build resolve the issue?

commented

Sorry for the late reply. Yes, that build resolves the issue.

commented

I guess I have an issue to file against AN, because that produces ugly results.

commented

It looks like the config file has BASE_RANGE defaulted with a range from 0.0 to the max value of the double, which may have caused the issue. 0 * 0 = 0, which would throw the null pointer exception. Is there a way to tell AN how to set up the config files? Maybe by having your add-on alter the config file to ensure certain variables are not too low when it loads? Could set up a check to make sure the range is not 0.0 ~ max and if it is have it alter the config and return a predefined range.
I'm not all too familiar with Java programming or I'd probably give a better suggestion, sorry.