Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » empty sequence problem
empty sequence problem [message #1756114] Sat, 11 March 2017 14:52 Go to next message
Banafsheh Azizi is currently offline Banafsheh AziziFriend
Messages: 328
Registered: July 2016
Senior Member
Hi,

when I have "Sequence ->first().features" if the Sequence has no element, I have "unable to access features on OclUndefined" error. What can I do?

And also in "a = Sequence -> at(1)", if the Sequence has no element, I have an error.


Member of MDSE Research Group
http://mdse.ui.ac.ir

[Updated on: Sun, 12 March 2017 09:20]

Report message to a moderator

Re: empty sequence problem [message #1756175 is a reply to message #1756114] Mon, 13 March 2017 14:25 Go to previous message
louis andia. is currently offline louis andia.Friend
Messages: 47
Registered: November 2016
Member
Hi,

You need to check first if your collection is not empty.
Previous Topic:Reporting errors during transformation
Next Topic:Source and Target of Flow not embedded in Target model
Goto Forum:
  


Current Time: Wed Apr 24 22:33:23 GMT 2024

Powered by FUDForum. Page generated in 0.03679 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top