Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7250622b authored by Yao Chen's avatar Yao Chen
Browse files

Fix statsd crash caused by non-existing data folder.

Test: manual
Change-Id: Ie470279929ff6ce40c4828a3cdda6d78542a3caa
parent c6a55e5b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -129,7 +129,7 @@ void StorageManager::sendBroadcast(const char* path,

void StorageManager::appendConfigMetricsReport(const char* path, ProtoOutputStream& proto) {
    unique_ptr<DIR, decltype(&closedir)> dir(opendir(path), closedir);
    if (dir != NULL) {
    if (dir == NULL) {
        VLOG("Path %s does not exist", path);
        return;
    }