{"record":{"id":"26d0ae613afda3cf","repo":"angular/angular","slug":"nullish-command","errorCode":"NULLISH_COMMAND","errorMessage":"The requested path contains ${cmd} segment at index ${i}","messagePattern":"The requested path contains (.+?) segment at index (.+?)","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"packages/router/src/router.ts","lineNumber":717,"sourceCode":"      resolve: resolve!,\n      reject: reject!,\n      promise,\n      currentSnapshot: this.routerState.snapshot,\n      currentRouterState: this.routerState,\n    });\n\n    // Make sure that the error is propagated even though `processNavigations` catch\n    // handler does not rethrow\n    // perf: Use `.bind` to avoid holding the other closures in this scope while this promise is unsettled.\n    return promise.catch(Promise.reject.bind(Promise));\n  }\n}\n\nfunction validateCommands(commands: readonly string[]): void {\n  for (let i = 0; i < commands.length; i++) {\n    const cmd = commands[i];\n    if (cmd == null) {\n      throw new RuntimeError(\n        RuntimeErrorCode.NULLISH_COMMAND,\n        (typeof ngDevMode === 'undefined' || ngDevMode) &&\n          `The requested path contains ${cmd} segment at index ${i}`,\n      );\n    }\n  }\n}\n","sourceCodeStart":699,"sourceCodeEnd":725,"githubUrl":"https://github.com/angular/angular/blob/51cb07e98081ab7e4e84a9e0949266a8e19cca84/packages/router/src/router.ts#L699-L725","documentation":"Error \"The requested path contains ${cmd} segment at index ${i}\" thrown in angular/angular.","triggerScenarios":"Thrown at packages/router/src/router.ts:717 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["The URL contains a segment that is a router command (e.g. an outlets expression) in an invalid position; fix the routerLink commands array."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"51cb07e98081ab7e4e84a9e0949266a8e19cca84","analyzedAt":"2026-08-22T07:04:54.531Z","schemaVersion":2},"datasetVersion":"2026-08-22T09:17:25.309Z"}