[Libreoffice-bugs] [Bug 143081] Base Documenter: Crash while documenting a database and trying to open forms

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Jun 26 21:05:58 UTC 2021


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

Julien Nabet <serval2412 at yahoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |serval2412 at yahoo.fr

--- Comment #1 from Julien Nabet <serval2412 at yahoo.fr> ---
On pc Debian x86-64 with master sources updated today, it fails to create a
BaseDocumenter repository because of the error
"Object variable not set" there:

Dim iTables As Integer, bReinit As Boolean, iMaster As Integer

        InitRepository = False
        If IsNull(Repository) Then GoTo Exit_Function

        With Repository
                'Identify if repo should be (re)initialized
                bReinit = False
                iTables = .TableDefs().Count
                If iTables = 0 Then
                        bReinit = True
                ElseIf iTables = 2 Then
                        'Do nothing if the database is not a repository !!
                        If .TableDefs(0).Name <> "DATABASES" Or
.TableDefs(1).Name <> "OBJECTS" Then Set Repository = Nothing
                Else
                        Set Repository = Nothing
                End If

                'Check if a master database record exists
                If Not bReinit Then
   iMaster = .DCount("ID", "DATABASES", "ID=0") <<<<<<< THERE


So can't test the crash.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210626/6985f6c7/attachment.htm>


More information about the Libreoffice-bugs mailing list