https://bugs.documentfoundation.org/show_bug.cgi?id=146112

            Bug ID: 146112
           Summary: IsNull must return False when testing object variables
                    (including non-initialized/assigned to Nothing) in
                    VBASupport 1 mode
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Keywords: difficultyBeginner, easyHack, skillCpp
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: [email protected]
          Reporter: [email protected]

SbRtl_IsNull [1] is explicitly designed to return True when passed an empty
object value. (This is since the initial import commit, so was always the
same.)

  Dim o As Object
  MsgBox IsNull(o) ' shows "True"

However, this is inconsistent with VBA, where the same code gives False.
So the function must consider VBASupport, and exclude the object variable test
when VBA support is enabled.

[1]
https://opengrok.libreoffice.org/xref/core/basic/source/runtime/methods.cxx?r=fffc6b40&mo=70055&fi=2482#2482

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to