CustomString Error

0
I have a List view within a Data view. For each of the objects displayed in the List view, I have a CustomString with context widget, whose microflow has the current object as parameter.   There is also a “Delete object” button for each object displayed in the List view, as the user may delete any of the objects displayed in the list view, at will. And here is the problem: When the “Delete” button is hit, the CustomString widget throws this error in the console:   Log node: Client Cannot read property 'getGuid' of null TypeError: Cannot read property 'getGuid' of null at E.(anonymous function).O._updateRendering (http://localhost:8080/widgets/CustomString/widget/CustomString.js?636868461336445956:73:53) at E.(anonymous function).O.<anonymous> (http://localhost:8080/widgets/CustomString/widget/CustomString.js?636868461336445956:115:30) at E.(anonymous function).O.<anonymous> (http://localhost:8080/mxclientsystem/mxui/mxui.js?636868461336445956:5:26632) at E.(anonymous function).O._runSubscription (http://localhost:8080/mxclientsystem/mxui/mxui.js?636868461336445956:36:62988) at E.(anonymous function).O.e.callback.e.val.n.callback (http://localhost:8080/mxclientsystem/mxui/mxui.js?636868461336445956:36:62398) at Object.callback (http://localhost:8080/mxclientsystem/mxui/mxui.js?636868461336445956:67:163463) at http://localhost:8080/mxclientsystem/mxui/mxui.js?636868461336445956:67:164899 at new Promise (<anonymous>) at http://localhost:8080/mxclientsystem/mxui/mxui.js?636868461336445956:67:164815 at Array.map (<anonymous>) and the dreaded message :”Error” An error occured, please contact your system administrator.” appears in a popup in the browser. 2 questions: 1. Compatibility issue? (Mendix Desktop Modeler 7.22 here) 2. Is there a way to disable the apparition of the popup and silently ignore the error (because the page refreshes anyway and the cause of the error disappears inherently)? I see that the widget is marked “Community support” only, so thanks in advance to anyone that comes up with ideas! Perhaps Jelte Lagendijk sees this message...
asked
2 answers
0

Might be a good idea to create an issue on github with the widget: https://github.com/mendix/CustomString/issues

You could try adding a check in you MF if the input parameter object is empty or not. That might prevent the error given.

answered
0

FYI Jelte fixed this.

See this thread.

answered