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

Problem with "topology(simulation)" in experiment with windows #32

Open
ptaillandier opened this issue Jun 24, 2022 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@ptaillandier
Copy link
Collaborator

I get this error message the first time I run the simulation (with windows 10):

1 occurence in Open0 at cycle 0: Java error: nil value detected
in show_map_selected <- distance_to(show_map_button,#user_location) < (w_width / 4);
NullPointerException: Cannot invoke "msi.gama.metamodel.shape.GamaPoint.euclidianDistanceTo(msi.gama.metamodel.shape.GamaPoint)" because "g1" is null
msi.gama.metamodel.topology.continuous.ContinuousTopology.distanceBetween(ContinuousTopology.java:122)
msi.gaml.operators.Spatial$Relations.distance_to(Spatial.java:5239)
gaml.additions.core.GamlAdditions.lambda$954(GamlAdditions.java:1014)
msi.gaml.expressions.operators.BinaryOperator._value(BinaryOperator.java:93)
msi.gaml.expressions.AbstractExpression.value(AbstractExpression.java:81)
msi.gaml.expressions.operators.BinaryOperator._value(BinaryOperator.java:91)
msi.gaml.expressions.AbstractExpression.value(AbstractExpression.java:81)
when applying the distance_to operator on nil and {0.0,-0.0,0.0}
in show_map_selected <- distance_to(show_map_button,#user_location) < (w_width / 4);
in using topology(simulation) {
show_map_selected <- distance_to(show_map_button,#user_location) < (w_width / 4);
show_waterflow_selected <- distance_to(show_waterflow_button,#user_location) < (w_width / 4);
}

in
in agent Open0

@ptaillandier ptaillandier added the bug Something isn't working label Jun 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants