Application does not run after merge — NullReferenceException despite 0 errors in Studio Pro
0
Hi everyone, I’m running into an issue after merging the current development branch into my feature branch. My feature branch contains a new module I created for this project. At the time I created my branch, the development branch had not yet incorporated some later changes, and since then it evolved significantly. When I merged the updated development branch into my branch, I encountered 44 modeler errors, which I resolved manually (using Resolve server document and fixing the model until Mendix Studio Pro reported no errors). At this point, my branch shows no validation errors in Mendix Studio Pro. However, when I try to run the application locally, it fails immediately with the following exception: System.AggregateException: One or more errors occurred. (Object reference not set to an instance of an object.)---> System.NullReferenceException: Object reference not set to an instance of an object. at Mendix.Modeler.WebUI.Forms.Widgets.CustomWidgets.WidgetValue.CheckTextTemplate(IProblems problems) in Mendix.Modeler.WebUI\Forms\Widgets\CustomWidgets\WidgetValue.cs:line 343 at Mendix.Modeler.WebUI.Forms.Widgets.CustomWidgets.WidgetValue.Check(IProblems problems, Option`1 visibleProperties) in Mendix.Modeler.WebUI\Forms\Widgets\CustomWidgets\WidgetValue.cs:line 291 We already tried advanced searches for broken references, undefined attributes, and widget issues, but nothing obvious was found. Studio Pro shows no errors. Yet the application is not runnable due to this internal exception. I’d appreciate any guidance on how to identify and resolve this error. Has anyone seen this happen before? Thanks in advance!
asked
Abraham Ugalde Sarabia
2 answers
0
Seems to me an issue with one of your added widgets.
Tedious work but this post describes a way to get to the bottom of the issue you are facing:
Agree with Erwin, seems to be a widget issue. In your widget-list, are there any widgets out of the ordinary? If so remove them and their use and retry to start.
Also: Did you check your widgets via Project → Tools → Check Widgets, and → update the widgets. Might also solve it.