Skip to content

Commit d29fb1c

Browse files
committed
fix NPE
1 parent 5f0fb20 commit d29fb1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eclipse/jsdt/ts.eclipse.ide.jsdt.ui/src/ts/eclipse/ide/jsdt/internal/ui/editor/codelens/TypeScriptBaseCodeLensProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public ICodeLens[] provideCodeLenses(ITextViewer textViewer) {
4343
NavigationBarItem tree = tsProject.getClient().navtree(tsFile.getName(), tsFile).get(1000,
4444
TimeUnit.MILLISECONDS);
4545
List<Range> referenceableSpans = new ArrayList<>();
46-
if (tree != null && tree.getChildItems().size() > 0) {
46+
if (tree != null && tree.hasChildItems()) {
4747
tree.getChildItems().forEach(item -> this.walkNavTree(tsFile, item, null, referenceableSpans));
4848
}
4949
return referenceableSpans.stream().map(span -> new ReferencesCodeLens(tsFile, span))

0 commit comments

Comments
 (0)