mark-friedman / app-inventor

Automatically exported from code.google.com/p/app-inventor
0 stars 0 forks source link

The replace all block (text function) fails if its argument is null #293

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If you send a null to the replace all block, app inventor crashes. Update the 
replace all text manipulation block so that if it receives a null it simply 
returns a null.

Original issue reported on code.google.com by shail...@gmail.com on 29 Nov 2012 at 4:42

GoogleCodeExporter commented 9 years ago

Original comment by andrew.f...@gmail.com on 29 Nov 2012 at 5:35

GoogleCodeExporter commented 9 years ago
I looked at this issue with the original app that was causing it.  The app was 
reporting a "Runtime Error" when the "Insert" button was clicked.  The problem 
was due to there being an empty-slot in the InsertIntoTable procedure.  Given 
the empty slot, the procedure, and hence the call to replace-all, was not being 
loaded onto the phone.  So the cause of the problem was the empty slot, not the 
replace-all function.

Original comment by ram8...@gmail.com on 4 Dec 2012 at 3:41

GoogleCodeExporter commented 9 years ago

Original comment by halabel...@google.com on 4 Dec 2012 at 12:51