Pierre-André Jacquod wrote:
> B2DTuple(const B2DTuple& rTup)
> ... 
> Here you dereference the null pointer, which crash.
> Ok, the basic attitude would be to let B2DTuple be Null-pointer
> consistent: (checking that rTup is not NULL), but is it really a
> good idea?
Hi Pierre-André,

no, what's passed is a reference, which by definition is always
de-referencable - so the bug is in the calling code.

> Or should I look higher in the hierarchy, saying that a NULL point
> in a B2DPolygon has nothing to do and disallow it ?
Yes, the calling code somehow accesses invalid elements. Let me have
a look.


-- Thorsten

Attachment: pgplfBS1Fa9aK.pgp
Description: PGP signature

LibreOffice mailing list

Reply via email to