Skip to main content



      Home
Home » Modeling » TMF (Xtext) » NullPointerException on validation
NullPointerException on validation [message #45279] Mon, 25 May 2009 18:22 Go to next message
Eclipse UserFriend
With my grammar I am getting NullPointerExceptions in
DatatypeRuleToken.internalMerge(String int)where the text is null -
usually because the text has not been completed by the user.

My grammar is rather complicated but the following grammar reproduces the
problem;-

Model :
(imports+=Import)*
(elements+=Class)*;

Import :
'import' importURI=STRING;

Class :
'class' name=ID ('extends' references=[Class])? (abbrev=ABBREV)?;

SPECIAL_ID : ID | INT ;
ABBREV: '<'SPECIAL_ID'>';

The following model text reproduces the problem;-
class A extends B<

Is this a bug?

Thanks.
Re: NullPointerException on validation [message #45317 is a reply to message #45279] Tue, 26 May 2009 02:48 Go to previous messageGo to next message
Eclipse UserFriend
Hi Cathy,

thanks for the feedback. Could you be so kind and file abug report under
our bugzilla component at bugs.eclipse.org?
We'll fix it ASAP.

Thank you very much,
Sven

Cathy Scott schrieb:
> With my grammar I am getting NullPointerExceptions in
> DatatypeRuleToken.internalMerge(String int)where the text is null -
> usually because the text has not been completed by the user.
>
> My grammar is rather complicated but the following grammar reproduces
> the problem;-
>
> Model :
> (imports+=Import)*
> (elements+=Class)*;
>
> Import :
> 'import' importURI=STRING;
>
> Class :
> 'class' name=ID ('extends' references=[Class])? (abbrev=ABBREV)?;
>
> SPECIAL_ID : ID | INT ;
> ABBREV: '<'SPECIAL_ID'>';
>
> The following model text reproduces the problem;-
> class A extends B<
>
> Is this a bug?
>
> Thanks.
>
Re: NullPointerException on validation [message #45459 is a reply to message #45317] Tue, 26 May 2009 15:11 Go to previous message
Eclipse UserFriend
I have opened bug report 277928.

Thank you,
Cathy
Previous Topic:[Announce] TMF XTEXT 0.7.0RC2 is available
Next Topic:[XText] best practices for variable handling
Goto Forum:
  


Current Time: Tue Jul 22 02:23:42 EDT 2025

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

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

Back to the top