File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -182,9 +182,11 @@ export class DocumentInfoProvider implements vscode.Disposable
182182
183183 for ( const endpoint of endPointsDiscoveredViaServer ) {
184184 const endPointSummary = endpoint as EndpointCodeObjectSummary ;
185- const shortRouteName = EndpointSchema . getShortRouteName ( endPointSummary . route ) ;
186- const parts = shortRouteName . split ( ' ' ) ;
187- if ( endPointSummary ) {
185+
186+ if ( endPointSummary && endPointSummary . route ) {
187+ const shortRouteName = EndpointSchema . getShortRouteName ( endPointSummary . route ) ;
188+ const parts = shortRouteName . split ( ' ' ) ;
189+
188190 const relatedMethod = symbolInfos . filter ( x => x . id === endpoint . codeObjectId ) . firstOrDefault ( ) ;
189191 if ( relatedMethod ) {
190192 endpoints . push ( new EndpointInfo (
You can’t perform that action at this time.
0 commit comments