Chromium Code Reviews| Index: mojo/public/js/codec.js |
| diff --git a/mojo/public/js/codec.js b/mojo/public/js/codec.js |
| index 68d5dba75f2f581f657f4b0295dbafc61f2e6f93..357e50718de2788fde45f0c8af90a2af044864f6 100644 |
| --- a/mojo/public/js/codec.js |
| +++ b/mojo/public/js/codec.js |
| @@ -125,7 +125,7 @@ define("mojo/public/js/codec", [ |
| }; |
| Decoder.prototype.decodeHandle = function() { |
| - return this.handles[this.readUint32()]; |
| + return this.handles[this.readUint32()] || null; |
| }; |
| Decoder.prototype.decodeString = function() { |