commit | 919678bcbe30643f2092a50b5cdb19265477570f | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Fri Mar 27 00:24:19 2020 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri Mar 27 00:24:19 2020 +0000 |
tree | 7744e7bd167ccc215c6c734c75496034f9f78505 | |
parent | d9fb5c895bfc83b4f0b0fb67ffdd86e2d119ba21 [diff] | |
parent | 533b2b62965a6ce3509b07fefc178232547fe58d [diff] |
Merge "libsnapshot: Fix intermittent test failure due to missing null check."
diff --git a/fs_mgr/libsnapshot/snapshot.cpp b/fs_mgr/libsnapshot/snapshot.cpp index 1eec6a4..b825805 100644 --- a/fs_mgr/libsnapshot/snapshot.cpp +++ b/fs_mgr/libsnapshot/snapshot.cpp
@@ -2505,7 +2505,9 @@ } UpdateState state = ProcessUpdateState([&]() -> bool { - callback(); + if (callback) { + callback(); + } return true; }); LOG(INFO) << "Update state in recovery: " << state;