Skip to content

Commit f2395c1

Browse files
committed
fixing exception with usage fix
1 parent f3c6c10 commit f2395c1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/services/documentInfoProvider.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)