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 A is currently offline Banafsheh AFriend
Messages: 261
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.

[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: 46
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: Mon Nov 20 00:35:53 GMT 2017

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

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