předem bych chtěl pogratulovat k odvaze, naprogramovat něco takového v C# není rozhodně hračka. Vypadá a funguje to v pohodě, akorát jsem se setkal s chybou na main postavě (Lorath). Kdykoliv najedu na tuhle postavu, tak mi to hodí Error 500 a následující výpis:
Server Error in '/' Application Object reference not set to an instance of an object Description: HTTP 500. Error processing request. Stack Trace: System.NullReferenceException: Object reference not set to an instance of an object at ArmoryInCSharp.Models.ItemModels.GetAtributesForItem (int,int,string[],int,int,System.Data.DataRow) <IL 0x00503, 0x00ec5> at ArmoryInCSharp.Models.ItemModels.BuildItemDataForCharacterSlot (int,int,string[],int,int,System.Data.DataRow,string) <IL 0x0003d, 0x000e3> at ArmoryInCSharp.Models.CharacterModels.GetCharacterSummaryItemsData () <IL 0x004ff, 0x00ce3> at ArmoryInCSharp.Models.CharacterModels.BuildCharacterSummaryPage () <IL 0x049ef, 0x0d563> at ArmoryInCSharp.Models.CharacterModels.InitializeCharacterSummary (string,string,string) <IL 0x0009e, 0x00167> at ArmoryInCSharp.Controllers.CharacterController.Summary (string,string,string) <IL 0x00029, 0x0008b> at (wrapper dynamic-method) object.lambda_method (System.Runtime.CompilerServices.Closure,System.Web.Mvc.ControllerBase,object[]) <IL 0x0001e, 0x000da> at System.Web.Mvc.ActionMethodDispatcher.Execute (System.Web.Mvc.ControllerBase,object[]) <IL 0x00008, 0x0002d> at System.Web.Mvc.ReflectedActionDescriptor.Execute (System.Web.Mvc.ControllerContext,System.Collections.Generic.IDictionary`2<string, object>) <IL 0x00074, 0x0010f> at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod (System.Web.Mvc.ControllerContext,System.Web.Mvc.ActionDescriptor,System.Collections.Generic.IDictionary`2<string, object>) <IL 0x00003, 0x00033> at System.Web.Mvc.ControllerActionInvoker/<>c__DisplayClassd.<InvokeActionMethodWithFilters>b__a () <IL 0x0002d, 0x0006e> at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter (System.Web.Mvc.IActionFilter,System.Web.Mvc.ActionExecutingContext,System.Func`1<System.Web.Mvc.ActionExecutedContext>) <IL 0x00031, 0x000e5> Version information: Mono Runtime Version: 2.10.2 (tarball Mon Aug 15 03:53:20 CEST 2011); ASP.NET Version: 4.0.30319.1
Ostatní postavy mi jedou v pohodě, takže to bude nejspíš chyba nějakýho itemu, co mam na sobě... Každopádně skvělá práce, jen tak dál! ;)