ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

[Text-Area][Bug] NPE if provided value is null

Open mehdijouan opened this issue 6 years ago • 2 comments

Using a text area, if the value is null, the replace function called will fail.

Here is the stacktrace of the console:

TextArea.js?afc7:330 Uncaught TypeError: Cannot read property 'replace' of null
    at HTMLElement._tokenizeText (TextArea.js?afc7:330)
    at HTMLElement.onBeforeRendering (TextArea.js?afc7:264)
    at HTMLElement._render (UI5Element.js?64a9:425)
    at renderWebComponents (RenderScheduler.js?cdc5:80)

mehdijouan avatar Dec 23 '19 13:12 mehdijouan

Hi @mehdijouan

Could you provide reproducible example in CodeSandbox? By null you probably mean empty string?

Best regards, Filip

fifoosid avatar Dec 23 '19 15:12 fifoosid

I cannot reproduce it in codesanbox. As I user Vue.js (forgot to mention it) it may be due to binding issue.

I'll close the issue until I'm able to reproduce it.

Thanks, Mehdi.

mehdijouan avatar Dec 24 '19 11:12 mehdijouan