<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Spreadsheet Theme throws BASIC runtime error"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=136297">136297</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Spreadsheet Theme throws BASIC runtime error
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.4.6.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Calc
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>stephane.guillou@member.fsf.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
When trying to open Format > Spreadsheet theme, a BASIC runtime error and the
macro editor appear.

Steps to Reproduce:
1. Open Calc
2. Click on Format > Spreadsheet Theme

Actual Results:
This error pops up:

BASIC runtime error.
An exception occurred
Type: com.sun.star.container.NoSuchElementException
Message:.

And the LibreOffice Macros & Dialogs.Tools window opens at the same time, with
the following script in focus:

LibreOffice Macros & Dialogues > Tools > ModuleControls

... with the line 159 highlighted:

oLibContainer.LoadLibrary(LibName)

(see screenshot)

In LO 7.0.1, the error message is slightly different:

BASIC runtime error.
An exception occurred
Type: com.sun.star.container.NoSuchElementException
Message:
/build/libreoffice-vH3EQM/libreoffice-7.0.1~rc1/basic/source/uno/namecont.cxx:117

Expected Results:
The dialogue with the list of spreadsheet themes opens.


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
The issue does not appear in safe mode, but I thought it would still be
interesting to report this and maybe figure it why the error pops up?
I am not sure what exactly in my configuration would be the source of this
error.

Version: 6.4.6.2
Build ID: 1:6.4.6~rc2-0ubuntu0.18.04.1
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: en-AU (en_AU.UTF-8); UI-Language: en-US
Calc: threaded

and

Version: 7.0.1.1
Build ID: <buildversion>
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Ubuntu package version: 1:7.0.1_rc1-0ubuntu0.18.04.1
Calc: threaded</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>