gallandarakhneorg / afc

Arakhnê Foundation Classes
http://www.arakhne.org/afc/
Apache License 2.0
14 stars 8 forks source link

NPE when testing Vector2d against null value #188

Open gallandarakhneorg opened 3 years ago

gallandarakhneorg commented 3 years ago

Let the following SARL code that is using the Vector2d from AFC library.

agent X {
    def fct {
          var v : Vector2d = null
           if (v != null) {
           }
     }
}

Original issue: https://github.com/sarl/sarl/issues/952

The NPE is generated when running the !=.