|
Re: NPE using OCL ValidationVisitor [message #54313 is a reply to message #54185] |
Wed, 23 April 2008 18:27 |
Eclipse User |
|
|
|
Originally posted by: cdamus.ca.ibm.com
Hi, Adolfo,
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).
cW
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
> referredVariable.
>
> 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...
-----8<-----
|
|
|
Powered by
FUDForum. Page generated in 0.01818 seconds