Skip to content

Commit

Permalink
Fix reading html content of a package fragment to not return null (#1657
Browse files Browse the repository at this point in the history
)

- in the case of a package fragement, when we search for Javadoc
  content and do not find any package info, just return the empty
  string so Javadoc hover will at least show the package name
  • Loading branch information
jjohnstn authored Sep 18, 2024
1 parent ffa74db commit a531b37
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,7 @@ protected String readHTMLContent(IPackageFragment packageFragment) throws CoreEx
return packageFragment.getAttachedJavadoc(null);

}

return null;
return ""; //$NON-NLS-1$
}


Expand Down

0 comments on commit a531b37

Please sign in to comment.