| Index: lib/binary/ast_to_binary.dart
|
| diff --git a/lib/binary/ast_to_binary.dart b/lib/binary/ast_to_binary.dart
|
| index 7611523b492186adc6f51f5abcbdfd26d61afea2..4e05ca45adedc678cf0fbd898219caf7502e6655 100644
|
| --- a/lib/binary/ast_to_binary.dart
|
| +++ b/lib/binary/ast_to_binary.dart
|
| @@ -92,7 +92,12 @@ class BinaryPrinter extends Visitor {
|
| }
|
|
|
| void writeUriReference(String string) {
|
| - writeUInt30(_sourceUriIndexer[string]);
|
| + int index = _sourceUriIndexer[string];
|
| + if (index == null) {
|
| + // Assume file was loaded without linking. Bail out to empty string.
|
| + index = _sourceUriIndexer[""];
|
| + }
|
| + writeUInt30(index);
|
| }
|
|
|
| void writeList(List items, writeItem(x)) {
|
|
|