Script error from pega_ui_doc.js as HARNESS_CONTENT is null
Error: Unable to get property 'scrollHeight' of undefined or null reference
Steps to Reproduce
OnLoad of a stream rule. Error: Unable to get property 'scrollHeight' of undefined or null reference is firing up.
We have found the respective code from where the error is originating.
var hcDivScrollHeight = document.getElementById("HARNESS_CONTENT").scrollHeight;
It is present in pega_ui_doc that is a java script file used by the harness document.
Text File: pega_ui_doc(Final)
webwb • pega_ui_doc • js
To resolve this issue, we have to modify resizeActionIFrame API in pega_ui_doc to use hcDiv (that already has a null check) instead of using document.getElementById("HARNESS_CONTENT") again in the same function.
This issue will be resolved in the next Pega7.1 release (ML8).
Published January 31, 2016 - Updated October 8, 2020
Was this useful?
0% found this useful
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.