Skip to content

[Bug]: Null Pointer Exception errors with non-snapped to grid tokens using grid sights #4637

Description

@Pmofmalasia

Describe the Bug

Null pointer exception errors can occur when a token is not snapped to the grid and has grid sights.

Full context via discord discussion (ignore that "later today or tomorrow" became in two weeks please): https://discord.com/channels/296230822262865920/905157521193455676/1190722185610928210

To Reproduce

Make a token, give it a short-ranged sight, unsnap it from the grid, attempt to move it in fog. Certain "problem spots" will cause the error, not necessarily on every move (see discord conversation for video context)

Expected Behaviour

Not having errors on moving tokens

Screenshots

No response

MapTool Info

No response

Desktop

No response

Additional Context

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions