{"action":"closed","issue":{"url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/issues/272","labels_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/issues/272/labels{/name}","comments_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/issues/272/comments","events_url":"https://api.github.com/repos/domaindrivendev/Swashbuckle/issues/272/events","html_url":"https://github.com/domaindrivendev/Swashbuckle/issues/272","id":68326401,"number":272,"title":"NullReferenceException","user":{"login":"Gentlehag","id":4619513,"avatar_url":"https://avatars.githubusercontent.com/u/4619513?v=3","gravatar_id":"","url":"https://api.github.com/users/Gentlehag","html_url":"https://github.com/Gentlehag","followers_url":"https://api.github.com/users/Gentlehag/followers","following_url":"https://api.github.com/users/Gentlehag/following{/other_user}","gists_url":"https://api.github.com/users/Gentlehag/gists{/gist_id}","starred_url":"https://api.github.com/users/Gentlehag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gentlehag/subscriptions","organizations_url":"https://api.github.com/users/Gentlehag/orgs","repos_url":"https://api.github.com/users/Gentlehag/repos","events_url":"https://api.github.com/users/Gentlehag/events{/privacy}","received_events_url":"https://api.github.com/users/Gentlehag/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-14T10:07:24Z","updated_at":"2015-04-14T16:17:56Z","closed_at":"2015-04-14T16:17:56Z","body":"In one project i got a nullrefrenceException   with the followign stacktrace\r\n\r\nis there a way to get the element which causes the problem?\r\n\r\n500 : {\"Message\":\"An error has occurred.\",\"ExceptionMessage\":\"Object reference not set to an instance of an object.\",\"ExceptionType\":\"System.NullReferenceException\",\"StackTrace\":\" at Swashbuckle.Swagger.XmlComments.ApplyXmlTypeComments.ApplyPropertyComments(Schema propertySchema, MemberInfo memberInfo)\\r\\n at Swashbuckle.Swagger.XmlComments.ApplyXmlTypeComments.Apply(Schema model, ModelFilterContext context)\\r\\n at Swashbuckle.Swagger.SchemaRegistry.CreateObjectSchema(JsonObjectContract jsonContract)\\r\\n at Swashbuckle.Swagger.SchemaRegistry.GetOrRegister(Type type)\\r\\n at Swashbuckle.Swagger.SwaggerGenerator.CreateOperation(ApiDescription apiDescription, SchemaRegistry schemaRegistry)\\r\\n at Swashbuckle.Swagger.SwaggerGenerator.CreatePathItem(IEnumerable`1 apiDescriptions, SchemaRegistry schemaRegistry)\\r\\n at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)\\r\\n at Swashbuckle.Swagger.SwaggerGenerator.GetSwagger(String rootUrl, String apiVersion)\\r\\n at Swashbuckle.Application.SwaggerDocsHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\\r\\n at System.Net.Http.HttpMessageInvoker.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\\r\\n at System.Web.Http.Dispatcher.HttpRoutingDispatcher.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\\r\\n at System.Web.Http.Tracing.Tracers.RequestMessageHandlerTracer.<>c__DisplayClass4.b__1()\\r\\n at System.Web.Http.Tracing.ITraceWriterExtensions.TraceBeginEndAsync[TResult](ITraceWriter traceWriter, HttpRequestMessage request, String category, TraceLevel level, String operatorName, String operationName, Action`1 beginTrace, Func`1 execute, Action`2 endTrace, Action`1 errorTrace)\\r\\n at System.Web.Http.Tracing.Tracers.RequestMessageHandlerTracer.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\\r\\n at System.Web.Http.HttpServer.d__0.MoveNext()\"} http://localhost:80/Booking/swagger/docs/v1"}}