|Re: NPE using OCL ValidationVisitor [message #54313 is a reply to message #54185]
||Wed, 23 April 2008 18:27
Originally posted by: cdamus.ca.ibm.com|
Of course, I agree! NPEs in validation of an expression are bugs, except
only in the case that the input expression is a null pointer (which would
be a silly input).
Adolfo Sánchez-Barbudo Herrera wrote:
> Hi Christian,
> Validating a variableExp which doesn't have a referredVariable, throws
> an exception. In fact, it's a problem of the ToStringVisitor, which is
> used when toString() is invoked in a VariableExp with out
> the ToStringVisitior.visitVariablExp method should check that the
> referredVariable from the variableExp is not null before getting its name.
> If you agree, I could arise a bugzilla with a patch...
Powered by FUDForum
. Page generated in 0.02833 seconds