Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add assert for unexpected syntaxkind and a conservative temporary fix. #2218

Closed
wants to merge 2 commits into from

Conversation

paulvanbrenk
Copy link
Contributor

Conservative fix for a crash in the navbar and adding instrumentation for a better fix.

TypeError: Unable to get property 'localeCompare' of undefined or null reference
at Anonymous function (:20435:25)
at sortNodes (:20433:17)
at getChildNodes (:20424:17)
at createSourceFileItem (:20639:21)
at createTopLevelItem (:20601:25)
at getItemsWorker (:20491:21)
at getNavigationBarItems (:20379:13)
at getNavigationBarItems (:26732:13)
at Anonymous function (:28077:17)
at simpleForwardCall (:27843:9)
at forwardJSONCall (:27857:13)
at forwardJSONCall (:27888:13)
at getNavigationBarItems (:28076:13)

@DanielRosenwasser
Copy link
Member

What's the issue that prompted this fix?

@vladima
Copy link
Contributor

vladima commented Mar 6, 2015

btw, I do remember fixing similar exceptions in 11f589f, f4ca318 and b05f2bf. It is possible that this bug is already fixed

@paulvanbrenk
Copy link
Contributor Author

@DanielRosenwasser automated reliability testing caught this, no obvious repro.

@vladima Looks like you're right.

@paulvanbrenk paulvanbrenk deleted the sortNodesNavBarFix branch April 29, 2015 01:49
This was referenced Jan 27, 2016
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants