I believe the manual says that, when comparing, the compiler tries to call the opEquals() method. And calling that from null pointer yields undefined behavior. You should use _!is null_ construct instead. Max Samukha Wrote: