# Exception when using freetext tool

**URL:** <https://pdfjs.community/t/exception-when-using-freetext-tool/95>\
**Category:** Technical Support\
**Created:** [June 26, 2020, 11:33am UTC](https://pdfjs.community/t/exception-when-using-freetext-tool/95 "2020-06-26T11:33:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rabiraj](https://avatars.discourse-cdn.com/v4/letter/r/c37758/32.png) [@rabiraj](https://pdfjs.community/u/rabiraj)\
**Post date:** [June 26, 2020, 11:33am UTC](https://pdfjs.community/t/exception-when-using-freetext-tool/95/1 "2020-06-26T11:33:00Z")

</div>

I am getting following exception when using freetext tool

message:“TypeError: Cannot read property ‘getBoundingClientRect’ of null”  
stack:"Error: TypeError: Cannot read property ‘getBoundingClientRect’ of null  
at z ([http://localhost:4200/lib/core/CoreControls.js:187:355](http://localhost:4200/lib/core/CoreControls.js:187:355))  
at [http://localhost:4200/lib/core/CoreControls.js:458:148](http://localhost:4200/lib/core/CoreControls.js:458:148)  
at Array.forEach ()

---

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [June 26, 2020, 7:48pm UTC](https://pdfjs.community/t/exception-when-using-freetext-tool/95/2 "2020-06-26T19:48:54Z")

</div>

Hey there!

I cannot reproduce this error. Are you making any changes to any classes related to the FreeTextTool? Any code samples would be great.

Thanks,  
Logan
