commit | c6327630fe3ac377aff512f17c38b56460d64be1 | [log] [tgz] |
---|---|---|
author | Shawn O. Pearce <sop@google.com> | Wed Jul 14 17:11:35 2010 -0700 |
committer | Shawn O. Pearce <sop@google.com> | Wed Jul 14 17:11:35 2010 -0700 |
tree | 725936b0939108bf8e6cc887a0c74f7db0b2983b | |
parent | 340e2771bef4562df7c45c0ac5c1f4177679ad3b [diff] |
Fix NPE when abandoning a change We need to deregister the existing key bindings before we clear out the UI widgets. This gives the current PatchSetPanel a chance to degister its navigation keys before we toss its reference. The NPE here occurred because we tried to deregister the keys, but the map was already empty, so we no longer had access to the correct key. Change-Id: I11a265287b1e61a23fad369b314cc7e6d9ad5524 Signed-off-by: Shawn O. Pearce <sop@google.com>