Skip to content

Added null handling in scanner.ts#2015

Open
ashwinGokhale wants to merge 2 commits intomicrosoft:mainfrom
ashwinGokhale:patch-1
Open

Added null handling in scanner.ts#2015
ashwinGokhale wants to merge 2 commits intomicrosoft:mainfrom
ashwinGokhale:patch-1

Conversation

@ashwinGokhale
Copy link
Copy Markdown

@ashwinGokhale ashwinGokhale commented Feb 20, 2024

Details

Null pointer exception when reading the scan results:

##[error][Exception]ErrorWithCause: An error occurred while scanning website page http://localhost:9009/
at Logger.trackExceptionAny (/__w/_tasks/accessibility-insights_4811a442-2fd3-5aa8-ba1a-14cb7e24c113/2.0.6/index.js:189664:29)
at Scanner. (/__w/_tasks/accessibility-insights_4811a442-2fd3-5aa8-ba1a-14cb7e24c113/2.0.6/index.js:190823:29)
at Generator.next ()
at fulfilled (/__w/_tasks/accessibility-insights_4811a442-2fd3-5aa8-ba1a-14cb7e24c113/2.0.6/index.js:190741:58)
caused by: TypeError: Cannot read property 'baseUrl' of undefined
at Scanner.getCombinedReportParameters (/__w/_tasks/accessibility-insights_4811a442-2fd3-5aa8-ba1a-14cb7e24c113/2.0.6/index.js:190837:60)
at Scanner. (/__w/_tasks/accessibility-insights_4811a442-2fd3-5aa8-ba1a-14cb7e24c113/2.0.6/index.js:190815:55)
at Generator.next ()
at fulfilled (/__w/_tasks/accessibility-insights_4811a442-2fd3-5aa8-ba1a-14cb7e24c113/2.0.6/index.js:190741:58)
Accessibility scanning of URL http://localhost:9009/ completed

Motivation

Addresses #2014

Context

Pull request checklist

  • Addresses an existing issue: Fixes #0000
  • Added relevant unit test for your changes. (yarn test)
  • Verified code coverage for the changes made. Check coverage report at: <rootDir>/test-results/unit/coverage
  • Ran precheckin (yarn precheckin)

@ashwinGokhale ashwinGokhale requested a review from a team as a code owner February 20, 2024 21:42
@v-viyada
Copy link
Copy Markdown
Contributor

Thanks for submitting PR. We are interested in review this PR but we cannot take this immediately due to some other pending priority issues. We will take this later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants