ModelDriven / Alf-Reference-Implementation

Open-source implementation of the Action Language for fUML (Alf) specification.
30 stars 2 forks source link

Setting the namespace name of a unit definition to null causes a null pointer exception #57

Closed seidewitz closed 6 years ago

seidewitz commented 6 years ago

The setter UnitDefinition.setNamespaceName not only sets the namespace name (a QualifiedName) of a UnitDefinition, it also sets the current scope and visibility flag for that qualified name. However, it needs to first check if the name is null (which is legal for a model unit) before doing the latter, in order to avoid a null pointer exception.

seidewitz commented 6 years ago

Resolved in v1.1.0b.