IsNull in LibreOffice Basic, unlike VBA, returns True when an object variable is passed that doesn't refer to a valid object (e.g., just created not yet assigned object, or assigned to Nothing literal). This is a conscious design decision (see tdf#146112), and is widely used [1]. This should be mentioned in the help. (And when bug 146112 is fixed, the VBA mode difference also needs to be reflected in help.) [1] https://ask.libreoffice.org/t/is-there-are-value-for-a-null-object-in-lobasic/31483/2