NVelocity.Exception.MethodInvocationException: Invocation of method 'getArticleSort' in AspxHospital.Templates.HospitalTemplate threw exception System.NullReferenceException : Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at AspxHospital.Templates.HospitalTemplate.getArticleSort(Int32 code) in E:\新建文件夹\绍兴市立医院\SX绍兴市立医院\AspxCms.Hospital.Comm\NVelocity\HospitalTemplate.cs:line 691 --- End of inner exception stack trace --- at NVelocity.Runtime.Parser.Node.ASTMethod.Execute(Object o, IInternalContextAdapter context) at NVelocity.Runtime.Parser.Node.ASTReference.Execute(Object o, IInternalContextAdapter context) at NVelocity.Runtime.Parser.Node.ASTReference.Value(IInternalContextAdapter context) at NVelocity.Runtime.Parser.Node.ASTSetDirective.Render(IInternalContextAdapter context, TextWriter writer) at NVelocity.Runtime.Parser.Node.ASTBlock.Render(IInternalContextAdapter context, TextWriter writer) at NVelocity.Runtime.Parser.Node.ASTIfStatement.Render(IInternalContextAdapter context, TextWriter writer) at NVelocity.Runtime.Parser.Node.SimpleNode.Render(IInternalContextAdapter context, TextWriter writer) at NVelocity.Runtime.Directive.Parse.RenderTemplate(Template template, String arg, TextWriter writer, IInternalContextAdapter context) at NVelocity.Runtime.Directive.Parse.Render(IInternalContextAdapter context, TextWriter writer, INode node) at NVelocity.Runtime.Parser.Node.ASTDirective.Render(IInternalContextAdapter context, TextWriter writer) at NVelocity.Runtime.Parser.Node.SimpleNode.Render(IInternalContextAdapter context, TextWriter writer) at NVelocity.Template.Merge(IContext context, TextWriter writer) at AspxHospital.Templates.TemplateHelper.BuildString(String templateFile) in E:\新建文件夹\绍兴市立医院\SX绍兴市立医院\AspxCms.Hospital.Comm\NVelocity\TemplateHelper.cs:line 69 at AspxHospital.Templates.TemplateHttpHandler.Display(String templateFile) in E:\新建文件夹\绍兴市立医院\SX绍兴市立医院\AspxCms.Hospital.Comm\NVelocity\TemplateHttpHandler.cs:line 113 at AspxHospital.Templates.TemplateHttpHandler.ProcessRequest(HttpContext context) in E:\新建文件夹\绍兴市立医院\SX绍兴市立医院\AspxCms.Hospital.Comm\NVelocity\TemplateHttpHandler.cs:line 86