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 A is currently offline Banafsheh AFriend
Messages: 276
Registered: July 2016
Senior Member

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: 47
Registered: November 2016

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: Fri Nov 16 12:08:12 GMT 2018

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

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

Back to the top