RTLabel icon indicating copy to clipboard operation
RTLabel copied to clipboard

try/catch block doesn't prevent bad HTML syntax

Open kentnguyen opened this issue 11 years ago • 0 comments

I wrap the only setText call in a standard @try/@catch block but it does not prevent the app from crashing because of bad HTML syntax. I can't prevent this, because data is coming from user.

In this case I have #FFFFF as the color code (missing one character).

How should i wrap the call so that it raises exception normally?

kentnguyen avatar Mar 26 '13 03:03 kentnguyen