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: 13882
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


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
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 15 18:21:30 GMT 2021

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

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

Back to the top