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

Commit 69cd4db5 authored by Marin Shalamanov's avatar Marin Shalamanov Committed by Android (Google) Code Review
Browse files

Merge "SF: Check the active mode for nullptr in dumpsys" into sc-dev

parents d71ed7c9 84b85487
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -268,8 +268,9 @@ void DisplayDevice::dump(std::string& result) const {
    StringAppendF(&result, "+ %s\n", getDebugName().c_str());
    StringAppendF(&result, "   powerMode=%s (%d)\n", to_string(mPowerMode).c_str(),
                  static_cast<int32_t>(mPowerMode));
    const auto activeMode = getActiveMode();
    StringAppendF(&result, "   activeMode=%s\n",
                  mSupportedModes.size() ? to_string(*getActiveMode()).c_str() : "none");
                  activeMode ? to_string(*activeMode).c_str() : "none");

    result.append("   supportedModes=\n");