Skip to content

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

Closed
Paul van Brenk (paulvanbrenk) wants to merge 2 commits into
masterfrom
sortNodesNavBarFix
Closed

Paul van Brenk (paulvanbrenk) wants to merge 2 commits into
masterfrom
sortNodesNavBarFix

Conversation

@paulvanbrenk

Copy link
Copy Markdown
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
Copy Markdown
Member

What's the issue that prompted this fix?

@vladima

Copy link
Copy Markdown
Contributor

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

@paulvanbrenk

Copy link
Copy Markdown
Contributor Author

Daniel Rosenwasser (@DanielRosenwasser) automated reliability testing caught this, no obvious repro.

Vladimir Matveev (@vladima) Looks like you're right.

@paulvanbrenk
Paul van Brenk (paulvanbrenk) deleted the sortNodesNavBarFix branch April 29, 2015 01:49
This was referenced Jan 27, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

4 participants