atlanmod / Mogwai

Automatic translation from OCL to Gremlin
10 stars 6 forks source link

Error-prone CustomGremlinGroovyPipeline constructors #35

Open gdaniel opened 7 years ago

gdaniel commented 7 years ago

The constructors CustomGremlinGroovyPipeline() and CustomGremlinGroovyPipeline(Object starts) do not initialize the PipesDatastore to use to access the model. Calling model related methods defined at the pipeline level such as getAtt and getRef will throw a NPE.

Is there a valid reason to keep these constructors?