Skip to content

Commit 3e1acf0

Browse files
committed
Merge pull request #34 from dart-lang/devoncarew_npe
fix an npe
2 parents bd73b46 + 0bb10e4 commit 3e1acf0

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)