| Index: runtime/observatory/lib/src/service/object.dart
|
| diff --git a/runtime/observatory/lib/src/service/object.dart b/runtime/observatory/lib/src/service/object.dart
|
| index 75c09182de503bbd483c0b534dea51e712d0472b..cca39822bc58e22b7b7f1df14ec2786e13d9a39b 100644
|
| --- a/runtime/observatory/lib/src/service/object.dart
|
| +++ b/runtime/observatory/lib/src/service/object.dart
|
| @@ -2819,7 +2819,8 @@ class Code extends ServiceObject {
|
| if (function == null) {
|
| return;
|
| }
|
| - if (function.location.script == null) {
|
| + if ((function.location == null) ||
|
| + (function.location.script == null)) {
|
| // Attempt to load the function.
|
| function.load().then((func) {
|
| var script = function.location.script;
|
|
|