Hello,
I get this from the Admin panel when viewing a Product - how do I find out what the error is?
Thanks,
Dave
System.NullReferenceException: Object reference not set to an instance of an object.
at NUglify.JavaScript.JSParser.ParseUnaryExpression(Boolean& isLeftHandSideExpr, Boolean isMinus)
at NUglify.JavaScript.JSParser.ParseExpressionStatement(Boolean fSourceElement)
at NUglify.JavaScript.JSParser.ParseStatement(Boolean fSourceElement, Boolean skipImportantComment)
at NUglify.JavaScript.JSParser.ParseFunctionBody(BlockStatement body)
at NUglify.JavaScript.JSParser.ParseFunction(FunctionType functionType, SourceContext fncCtx)
at NUglify.JavaScript.JSParser.ParseLeftHandSideExpression(Boolean isMinus)
at NUglify.JavaScript.JSParser.ParseUnaryExpression(Boolean& isLeftHandSideExpr, Boolean isMinus)
at NUglify.JavaScript.JSParser.ParseExpressionList(JSToken terminator)
at NUglify.JavaScript.JSParser.ParseMemberExpression(AstNode expression, List`1 newContexts)
at NUglify.JavaScript.JSParser.ParseLeftHandSideExpression(Boolean isMinus)
at NUglify.JavaScript.JSParser.ParseUnaryExpression(Boolean& isLeftHandSideExpr, Boolean isMinus)
at NUglify.JavaScript.JSParser.ParseExpressionStatement(Boolean fSourceElement)
at NUglify.JavaScript.JSParser.ParseStatement(Boolean fSourceElement, Boolean skipImportantComment)
at NUglify.JavaScript.JSParser.ParseFunctionBody(BlockStatement body)
at NUglify.JavaScript.JSParser.ParseFunction(FunctionType functionType, SourceContext fncCtx)
at NUglify.JavaScript.JSParser.ParseLeftHandSideExpression(Boolean isMinus)
at NUglify.JavaScript.JSParser.ParseUnaryExpression(Boolean& isLeftHandSideExpr, Boolean isMinus)
at NUglify.JavaScript.JSParser.ParseExpressionList(JSToken terminator)
at NUglify.JavaScript.JSParser.ParseMemberExpression(AstNode expression, List`1 newContexts)
at NUglify.JavaScript.JSParser.ParseLeftHandSideExpression(Boolean isMinus)
at NUglify.JavaScript.JSParser.ParseUnaryExpression(Boolean& isLeftHandSideExpr, Boolean isMinus)
at NUglify.JavaScript.JSParser.ParseExpressionStatement(Boolean fSourceElement)
at NUglify.JavaScript.JSParser.ParseStatement(Boolean fSourceElement, Boolean skipImportantComment)
at NUglify.JavaScript.JSParser.ParseStatements(BlockStatement block)
at NUglify.JavaScript.JSParser.InternalParse()
at WebMarkupMin.NUglify.NUglifyJsMinifier.Minify(String content, Boolean isInlineCode, Encoding encoding)
at WebMarkupMin.Core.GenericHtmlMinifier.ProcessEmbeddedScriptContent(MarkupParsingContext context, String content, String contentType)
at WebMarkupMin.Core.GenericHtmlMinifier.EmbeddedCodeHandler(MarkupParsingContext context, String code)
at WebMarkupMin.Core.Parsers.HtmlParser.ProcessEmbeddedCode()
at WebMarkupMin.Core.Parsers.HtmlParser.Parse(String content)
at WebMarkupMin.Core.GenericHtmlMinifier.Minify(String content, String fileContext, Encoding encoding, Boolean generateStatistics)
at WebMarkupMin.AspNetCore2.BodyWrapperStream.Finish()
at WebMarkupMin.AspNetCore2.WebMarkupMinMiddleware.Invoke(HttpContext context)
at StackExchange.Profiling.MiniProfilerMiddleware.Invoke(HttpContext context) in C:\projects\dotnet\src\MiniProfiler.AspNetCore\MiniProfilerMiddleware.cs:line 94
at Nop.Services.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) in C:\andrei\nopcommerce\sources\src\Libraries\Nop.Services\Authentication\AuthenticationMiddleware.cs:line 79
at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
at Nop.Services.Installation.InstallUrlMiddleware.Invoke(HttpContext context, IWebHelper webHelper) in C:\andrei\nopcommerce\sources\src\Libraries\Nop.Services\Installation\InstallUrlMiddleware.cs:line 52
at Nop.Services.Common.KeepAliveMiddleware.Invoke(HttpContext context, IWebHelper webHelper) in C:\andrei\nopcommerce\sources\src\Libraries\Nop.Services\Common\KeepAliveMiddleware.cs:line 49
at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.Invoke(HttpContext context)