See subject and attached demo project. If BBCodeView1.Text is set to some string that contains square brackets but these don't enclose a valid tag, an exception is thrown and the BBCodeView becomes empty and further unusable (further attempts to set the text result in more RuntimeExceptions). The log shows (when "[MyText]" was added):
Perhaps is an invalid tag is encountered, it should be considered as plain text.
I've only tested this with B4J; perhaps it is a B4X-wide issue?
Error (position - 0): Invalid tag: MyText
(RuntimeException) java.lang.RuntimeException: Object should first be initialized (List).
Perhaps is an invalid tag is encountered, it should be considered as plain text.
I've only tested this with B4J; perhaps it is a B4X-wide issue?