Bug 53899

Summary: ThisComponent.CurrentController is NULL when first calculating cell formulas
Product: LibreOffice Reporter: Jim Avera <jim.avera>
Component: BASICAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: normal    
Priority: medium CC: todventtu
Version: 3.6.1.1 rc   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Demo spreadsheet showing NULL CurrentController at start-up

Description Jim Avera 2012-08-21 23:08:05 UTC
Created attachment 65919 [details]
Demo spreadsheet showing NULL CurrentController at start-up

In Basic macros, ThisComponent.CurrentController is not being initialized before evaluating formulas in spreadsheet cells the first time after start-up.

Consequently, if a cell formula calls a macro which tries to access the current frame, an error occurs.   After start-up the problem goes away, i.e. 
ThisComponent.CurrentController is defined.

Please open the attached demo .ods file.
Comment 1 Beluga 2014-11-06 12:02:38 UTC
Confirmed.

Win 7 64-bit Version: 4.4.0.0.alpha1+
Build ID: 8b21b5cbe78945b27525b4ce78ae3d981f90590f
TinderBox: Win-x86@39, Branch:master, Time: 2014-11-06_03:55:51

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.