{"action":"created","issue":{"url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/5031","labels_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/5031/labels{/name}","comments_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/5031/comments","events_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/5031/events","html_url":"https://github.com/OrchardCMS/Orchard/issues/5031","id":68221856,"number":5031,"title":"Widget translation","user":{"login":"orchardbot","id":11788683,"avatar_url":"https://avatars.githubusercontent.com/u/11788683?v=3","gravatar_id":"","url":"https://api.github.com/users/orchardbot","html_url":"https://github.com/orchardbot","followers_url":"https://api.github.com/users/orchardbot/followers","following_url":"https://api.github.com/users/orchardbot/following{/other_user}","gists_url":"https://api.github.com/users/orchardbot/gists{/gist_id}","starred_url":"https://api.github.com/users/orchardbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orchardbot/subscriptions","organizations_url":"https://api.github.com/users/orchardbot/orgs","repos_url":"https://api.github.com/users/orchardbot/repos","events_url":"https://api.github.com/users/orchardbot/events{/privacy}","received_events_url":"https://api.github.com/users/orchardbot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-02-16T01:52:54Z","updated_at":"2015-04-25T15:47:34Z","closed_at":null,"body":"@Skrypt created:\r\nhttps://orchard.codeplex.com/workitem/21202\r\n\r\nWhen I'm trying to add a translation to a widget I get this error : \r\n\n```\r\nErreur du serveur dans l'application '/'.\r\n\nLa référence d'objet n'est pas définie à une instance d'un objet.\r\n\nDescription : Une exception non gérée s'est produite au moment de l'exécution de la requête Web actuelle. Contrôlez la trace de la pile pour plus d'informations sur l'erreur et son origine dans le code. \r\n\nDétails de l'exception: System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.\r\n\nErreur source: \r\n\n\nLigne 8 :  <fieldset>\r\nLigne 9 :      @Html.LabelFor(widget => widget.LayerId, T(\"Layer\"))\r\nLigne 10 :     @Html.DropDownListFor(widget => widget.LayerId, new SelectList(Model.AvailableLayers, \"Id\", \"Name\"))\r\nLigne 11 :     <span class=\"hint\">@T(\"The Layer where the Widget will be rendered.\")</span>\r\nLigne 12 : </fieldset>\r\n\nFichier source : c:\\Orchard\\src\\Orchard.Web\\Modules\\Orchard.Widgets\\Views\\EditorTemplates\\Parts.Widgets.WidgetPart.cshtml    Ligne : 10 \r\n\nTrace de la pile: \r\n\n\n[NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.]\r\n   Orchard.Widgets.Models.WidgetPart.get_LayerId() +90\r\n\n[TargetInvocationException: L'accesseur de propriété 'LayerId' sur l'objet 'Orchard.Widgets.Models.WidgetPart' a levé l'exception suivante :'La référence d'objet n'est pas définie à une instance d'un objet.']\r\n   System.ComponentModel.ReflectPropertyDescriptor.GetValue(Object component) +387\r\n   System.Web.Mvc.<>c__DisplayClassb.<GetPropertyValue>b__a() +18\r\n   System.Web.Mvc.ViewDataInfo.get_Value() +17\r\n   System.Web.Mvc.ViewDataDictionary.Eval(String expression) +24\r\n   System.Web.Mvc.Html.SelectExtensions.SelectInternal(HtmlHelper htmlHelper, ModelMetadata metadata, String optionLabel, String name, IEnumerable1 selectList, Boolean allowMultiple, IDictionary2 htmlAttributes) +237\r\n   System.Web.Mvc.Html.SelectExtensions.DropDownListFor(HtmlHelper1 htmlHelper, Expression1 expression, IEnumerable1 selectList, String optionLabel, IDictionary2 htmlAttributes) +92\r\n   System.Web.Mvc.Html.SelectExtensions.DropDownListFor(HtmlHelper1 htmlHelper, Expression1 expression, IEnumerable1 selectList) +60\r   ASP._Page_Modules_Orchard_Widgets_Views_EditorTemplates_Parts_Widgets_WidgetPart_cshtml.Execute() in c:\\Orchard\\src\\Orchard.Web\\Modules\\Orchard.Widgets\\Views\\EditorTemplates\\Parts.Widgets.WidgetPart.cshtml:10\r   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +199\r   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +105\r   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +90\r   System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) +256\r   System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) +107\r   System.Web.Mvc.HtmlHelper.RenderPartialInternal(String partialViewName, ViewDataDictionary viewData, Object model, TextWriter writer, ViewEngineCollection viewEngineCollection) +277\r   System.Web.Mvc.Html.RenderPartialExtensions.RenderPartial(HtmlHelper htmlHelper, String partialViewName) +57\r   Orchard.Core.Shapes.CoreShapes.RenderInternal(HtmlHelper Html, TextWriter Output, String TemplateName, Object Model, String Prefix) in c:\\Orchard\\src\\Orchard.Web\\Core\\Shapes\\CoreShapes.cs:768\r   Orchard.Core.Shapes.CoreShapes.EditorTemplate(HtmlHelper Html, TextWriter Output, String TemplateName, Object Model, String Prefix) in c:\\Orchard\\src\\Orchard.Web\\Core\\Shapes\\CoreShapes.cs:756\r\r[TargetInvocationException: Une exception a été levée par la cible d'un appel.]\r   System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0\r   System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +92\r   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +155\r   System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) +19\r   Orchard.DisplayManagement.Descriptors.ShapeAttributeStrategy.ShapeAttributeBindingStrategy.PerformInvoke(DisplayContext displayContext, MethodInfo methodInfo, Object serviceInstance) in c:\\Orchard\\src\\Orchard\\DisplayManagement\\Descriptors\\ShapeAttributeStrategy\\ShapeAttributeBindingStrategy.cs:64\r   Orchard.DisplayManagement.Descriptors.ShapeAttributeStrategy.<>c__DisplayClass4.<CreateDelegate>b__3(DisplayContext context) in c:\\Orchard\\src\\Orchard\\DisplayManagement\\Descriptors\\ShapeAttributeStrategy\\ShapeAttributeBindingStrategy.cs:55\r   Orchard.DisplayManagement.Descriptors.<>c__DisplayClass5.<BoundAs>b__2(DisplayContext displayContext) in c:\\Orchard\\src\\Orchard\\DisplayManagement\\Descriptors\\ShapeAlterationBuilder.cs:56\r   Orchard.DisplayManagement.Implementation.DefaultDisplayManager.Process(ShapeBinding shapeBinding, IShape shape, DisplayContext context) in c:\\Orchard\\src\\Orchard\\DisplayManagement\\Implementation\\DefaultDisplayManager.cs:202\r   Orchard.DisplayManagement.Implementation.DefaultDisplayManager.Execute(DisplayContext context) in c:\\Orchard\\src\\Orchard\\DisplayManagement\\Implementation\\DefaultDisplayManager.cs:98\r   Orchard.DisplayManagement.Implementation.DisplayHelper.ShapeExecute(Object shape) in c:\\Orchard\\src\\Orchard\\DisplayManagement\\Implementation\\DisplayHelper.cs:86\r   Orchard.DisplayManagement.Implementation.DisplayHelper.Invoke(String name, INamedEnumerable1 parameters) in c:\\Orchard\\src\\Orchard\\DisplayManagement\\Implementation\\DisplayHelper.cs:44\r\n   Orchard.DisplayManagement.Implementation.DisplayHelper.TryInvoke(InvokeBinder binder, Object[] args, Object& result) in c:\\Orchard\\src\\Orchard\\DisplayManagement\\Implementation\\DisplayHelper.cs:29\r\n   CallSite.Target(Closure , CallSite , Object , Object ) +193\r\n   Orchard.Core.Shapes.CoreShapes.ContentZone(Object Display, Object Shape, TextWriter Output) in c:\\Orchard\\src\\Orchard.Web\\Core\\Shapes\\CoreShapes.cs:286\r\n\n[TargetInvocationException: Une exception a été levée par la cible d'un appel.]\r\n   System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0\r\n   System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +92\r\n   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +155\r\n   System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) +19\r\n   Orchard.DisplayManagement.Descriptors.ShapeAttributeStrategy.ShapeAttributeBindingStrategy.PerformInvoke(DisplayContext displayContext, MethodInfo methodInfo, Object serviceInstance) in c:\\Orchard\\src\\Orchard\\DisplayManagement\\Descriptors\\ShapeAttributeStrategy\\ShapeAttributeBindingStrategy.cs:64\r\n   Orchard.DisplayManagement.Descriptors.ShapeAttributeStrategy.<>c__DisplayClass4.<CreateDelegate>b__3(DisplayContext context) in c:\\Orchard\\src\\Orchard\\DisplayManagement\\Descriptors\\ShapeAttributeStrategy\\ShapeAttributeBindingStrategy.cs:55\r\n   Orchard.DisplayManagement.Descriptors.<>c__DisplayClass5.<BoundAs>b__2(DisplayContext displayContext) in c:\\Orchard\\src\\Orchard\\DisplayManagement\\Descriptors\\ShapeAlterationBuilder.cs:56\r\n   Orchard.DisplayManagement.Implementation.DefaultDisplayManager.Process(ShapeBinding shapeBinding, IShape shape, DisplayContext context) in c:\\Orchard\\src\\Orchard\\DisplayManagement\\Implementation\\DefaultDisplayManager.cs:202\r\n   Orchard.DisplayManagement.Implementation.DefaultDisplayManager.Execute(DisplayContext context) in c:\\Orchard\\src\\Orchard\\DisplayManagement\\Implementation\\DefaultDisplayManager.cs:98\r\n   Orchard.DisplayManagement.Implementation.DisplayHelper.ShapeExecute(Object shape) in c:\\Orchard\\src\\Orchard\\DisplayManagement\\Implementation\\DisplayHelper.cs:86\r\n   Orchard.DisplayManagement.Implementation.DisplayHelper.Invoke(String name, INamedEnumerable`1 parameters) in c:\\Orchard\\src\\Orchard\\DisplayManagement\\Implementation\\DisplayHelper.cs:44\r\n   Orchard.DisplayManagement.Implementation.DisplayHelper.TryInvoke(InvokeBinder binder, Object[] args, Object& result) in c:\\Orchard\\src\\Orchard\\DisplayManagement\\Implementation\\DisplayHelper.cs:29\r\n   CallSite.Target(Closure , CallSite , Object , Object ) +193\r\n   ASP._Page_Modules_Orchard_Widgets_Views_Widget_Edit_cshtml.Execute() in c:\\Orchard\\src\\Orchard.Web\\Modules\\Orchard.Widgets\\Views\\Widget.Edit.cshtml:3\r\n   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +199\r\n   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +105\r\n   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +90\r\n   System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) +256\r\n   System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) +107\r\n   System.Web.Mvc.HtmlHelper.RenderPartialInternal(String partialViewName, ViewDataDictionary viewData, Object model, TextWriter writer, ViewEngineCollection viewEngineCollection) +277\r\n   System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) +91\r\n   System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model) +33\r\n   Orchard.DisplayManagement.Descriptors.ShapeTemplateStrategy.ShapeTemplateBindingStrategy.Render(ShapeDescriptor shapeDescriptor, DisplayContext displayContext, HarvestShapeInfo harvestShapeInfo, HarvestShapeHit harvestShapeHit) in c:\\Orchard\\src\\Orchard\\DisplayManagement\\Descriptors\\ShapeTemplateStrategy\\ShapeTemplateBindingStrategy.cs:151\r\n   Orchard.DisplayManagement.Descriptors.ShapeTemplateStrategy.<>c__DisplayClass28.<Discover>b__15(DisplayContext displayContext) in c:\\Orchard\\src\\Orchard\\DisplayManagement\\Descriptors\\ShapeTemplateStrategy\\ShapeTemplateBindingStrategy.cs:133\r\n   Orchard.DisplayManagement.Descriptors.<>c__DisplayClass5.<BoundAs>b__2\n"},"comment":{"url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/comments/96231036","html_url":"https://github.com/OrchardCMS/Orchard/issues/5031#issuecomment-96231036","issue_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/5031","id":96231036,"user":{"login":"sfmskywalker","id":938393,"avatar_url":"https://avatars.githubusercontent.com/u/938393?v=3","gravatar_id":"","url":"https://api.github.com/users/sfmskywalker","html_url":"https://github.com/sfmskywalker","followers_url":"https://api.github.com/users/sfmskywalker/followers","following_url":"https://api.github.com/users/sfmskywalker/following{/other_user}","gists_url":"https://api.github.com/users/sfmskywalker/gists{/gist_id}","starred_url":"https://api.github.com/users/sfmskywalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfmskywalker/subscriptions","organizations_url":"https://api.github.com/users/sfmskywalker/orgs","repos_url":"https://api.github.com/users/sfmskywalker/repos","events_url":"https://api.github.com/users/sfmskywalker/events{/privacy}","received_events_url":"https://api.github.com/users/sfmskywalker/received_events","type":"User","site_admin":false},"created_at":"2015-04-25T15:47:34Z","updated_at":"2015-04-25T15:47:34Z","body":"I can't make you the assignee, but you can still submit a PR if you like. Thanks."}}