Small change in FAMIXFileAnchor>>rootFolder

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Small change in FAMIXFileAnchor>>rootFolder

Andre Hora
Hello,

Any problem if I change the implementation of
---
FAMIXFileAnchor>>rootFolder
^ self mooseModel rootFolder
---

to

---
FAMIXFileAnchor>>rootFolder
self mooseModel ifNil: [ ^ '' ].
^ self mooseModel rootFolder
---

The problem is that when mooseModel is nil (ie, when working with FAMIX-only), there will be an exception.
FAMIXFileAnchor is depending on moose.

What do you think?

best regards,

--
Andre Hora

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev