Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Cannot set map object to context of XBaseInterpreter
Cannot set map object to context of XBaseInterpreter [message #1837868] Tue, 09 February 2021 07:07 Go to next message
Udo Walker is currently offline Udo WalkerFriend
Messages: 48
Registered: January 2013
Member
I subclassed XbaseInterpreter and in my method I call evaluate(..) of the super class.

If I add an object of type java.util.List to the EvaluationContext everything works find when I reference it in my XExpression.

When I add an object of type java.util.Map I get the error message

java.lang.IllegalArgumentException: Segment cannot be null
	at org.eclipse.xtext.naming.QualifiedName.create(QualifiedName.java:240)
	at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter._invokeFeature(XbaseInterpreter.java:1099)


How could I fix this?
Re: Cannot set map object to context of XBaseInterpreter [message #1837871 is a reply to message #1837868] Tue, 09 February 2021 10:20 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
which Xtext version do you use?
did you debug what is actually null?
can you provide a reproducing unit test/java main e.g. with domain model example


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:defect xtext version?
Next Topic:EMF - adding new model objects programmatically
Goto Forum:
  


Current Time: Thu Apr 25 07:52:11 GMT 2024

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

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

Back to the top