B4X FEED BBCodeView throws exception if text is enclosed in square brackets (and considered an invalid tag)

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: BBCodeView throws exception if text is enclosed in square brackets (and considered an invalid tag) است. این موضوع تا کنون 36 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع BBCodeView throws exception if text is enclosed in square brackets (and considered an invalid tag)
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
36
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
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):
Error (position - 0): Invalid tag: MyText
(RuntimeException) java.lang.RuntimeException: Object should first be initialized (List).
Click to expand...

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?

 

عقب
بالا