Avoid crash of paste null string to UI's text
Merge pull request #6602 from sum2012/patch-1

Avoid crash of paste null string to UI's textedit