commit | f715de6b08e428ba45d1076e4133fe9b7f6b9a7d | [log] [tgz] |
---|---|---|
author | calderwoodra <calderwoodra@google.com> | Tue Jul 11 16:33:32 2017 -0700 |
committer | Eric Erfanian <erfanian@google.com> | Wed Jul 12 09:44:38 2017 -0700 |
tree | 5e0e9d0c352dc811b412e693e16e245d3f37ddd1 | |
parent | 9ea21240eb498d4f59a8d72857365059dd41bd1b [diff] |
Fixed NPE in CameraComposerFragment. If a user took a picture then quickly closed call composer, when the image was ready we would try to update our view state. Since our fragment is no longer attached, this cuases a crash when we check that getContext() is not null. fragment.getContext is never null in robolectric. Bug: 62687110 Test: manual, cannot test b/c we cannot take photos in Espresso and PiperOrigin-RevId: 161600278 Change-Id: If9bd98578d221fca4bc99ff17a39f917f3a8bcca