I'm facing an issue with my code where using the ??
operator causes a crash in the MVC built-in bundler/minifier. The problematic line is:
span.textContent = typeof (info) === 'object' ? info.column.caption ?? info.column.dataField : info;
I have narrowed down the problem to this specific line of code. Removing the operator or commenting out this line resolves the crash. Is there a solution to fix this?
Below is the error message generated:
[NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.]
Microsoft.Ajax.Utilities.JSParser.ParseExpression(AstNode leftHandSide, Boolean single, Boolean bCanAssign, JSToken inToken) +820
...
(Truncated error message for brevity)
...
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +134