Skip to content

NPE: importedExportedLibraries was called on null #2426

@isoos

Description

@isoos

Affected version: 0.36.2
Original report: dart-lang/pub-dev#4238

To reproduce:

  • Download flutter_instagram_stories from here.
  • Run dartdoc without any extra parameters (but with Flutter in path or FLUTTER_ROOT set).

Also affected packages: fid_widgets, typeahead.

NoSuchMethodError: The getter 'importedExportedLibraries' was called on null.
Receiver: null
Tried calling: importedExportedLibraries
#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
#1      Library.importedExportedLibraries (package:dartdoc/src/model/library.dart:272:47)
#2      Library.packageImportedExportedLibraries.<anonymous closure> (package:dartdoc/src/model/library.dart:253:52)
#3      Iterable.forEach (dart:core/iterable.dart:283:30)
#4      Library.packageImportedExportedLibraries (package:dartdoc/src/model/library.dart:252:12)
#5      _MarkdownCommentReference._reducePreferLibrariesInLocalImportExportGraph.<anonymous closure> (package:dartdoc/src/markdown_processor.dart:531:24)
#6      SetMixin.any (dart:collection/set.dart:190:15)
#7      _MarkdownCommentReference._reducePreferLibrariesInLocalImportExportGraph (package:dartdoc/src/markdown_processor.dart:530:17)
#8      _MarkdownCommentReference.computeReferredElement (package:dartdoc/src/markdown_processor.dart:471:21)
#9      _getMatchingLinkElement (package:dartdoc/src/markdown_processor.dart:240:12)
#10     _makeLinkNode (package:dartdoc/src/markdown_processor.dart:855:16)
#11     new MarkdownDocument.withElementLinkResolver.linkResolver (package:dartdoc/src/markdown_processor.dart:950:14)

Metadata

Metadata

Assignees

Labels

P0A serious issue requiring immediate resolutiontype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions