Skip to content

Commit 0bb10e4

Browse files
committed
fix an npe
1 parent bd73b46 commit 0bb10e4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/src/generator.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -421,10 +421,7 @@ class HtmlGenerator {
421421
String _resolveCodeReference(ModelElement e, String reference) {
422422
ModelElement element = e.getChild(reference);
423423

424-
if (element.isLocalElement) {
425-
element = null;
426-
}
427-
if (element != null) {
424+
if (element != null && !element.isLocalElement) {
428425
return helper.createLinkedName(element, true);
429426
} else {
430427
//return "<a>$reference</a>";

0 commit comments

Comments
 (0)