NullReferenceException in repository page

Andrey Pavlov's Avatar

Andrey Pavlov

15 Jun, 2013 07:26 AM

[NullReferenceException: Object reference not set to an instance of an object.]
   HgLab.Areas.Project.Controllers.<>c__DisplayClass19.<Files>b__d(HgManifestTreeNode f) in d:\Projects\hglab\src\HgLab\Areas\Project\Controllers\RepositoryController.cs:161
   System.Linq.Enumerable.ToDictionary(IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer) +249
   System.Linq.Enumerable.ToDictionary(IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector) +89
   HgLab.Areas.Project.Controllers.RepositoryController.Files(Repository repository, String changeset, String path) in d:\Projects\hglab\src\HgLab\Areas\Project\Controllers\RepositoryController.cs:160
   lambda_method(Closure , ControllerBase , Object[] ) +235
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +273
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +38
   System.Web.Mvc.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12() +119
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +637
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +307
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +720
   System.Web.Mvc.Controller.ExecuteCore() +162
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +305
   HgLab.Core.Framework.Web.HgLabControllerBase.Execute(RequestContext requestContext) in d:\Projects\hglab\src\HgLab.Core\Framework\Web\HgLabControllerBase.cs:69
   System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +62
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +15
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +606
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288

  1. Support Staff 1 Posted by Anton Gogolev on 17 Jun, 2013 12:57 PM

    Anton Gogolev's Avatar

    Andrey,

    Sorry for the delay.

    This is most likely due to incompatible encoding setting. What do you have
    set as the Encoding under Administration - General and are there any
    non-ASCII-named files in your repository?

  2. 2 Posted by Andrey Pavlov on 17 Jun, 2013 03:59 PM

    Andrey Pavlov's Avatar

    Yes it`s true. I set encoding to Unicode and get this error. I change encoding to UTF-8 and all begin work.

  3. Anton Gogolev closed this discussion on 18 Jun, 2013 07:40 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

03 Aug, 2022 01:49 PM
05 Jul, 2022 07:01 PM
28 Mar, 2022 04:42 PM
21 Jan, 2022 10:43 AM
20 Jan, 2022 10:45 AM

 

18 Jan, 2022 10:15 AM
19 Mar, 2021 06:13 PM
01 Mar, 2021 02:51 PM
01 Jan, 2021 02:19 AM
28 Aug, 2020 08:34 AM
23 Jun, 2020 08:29 AM