Skip to content

Commit

Permalink
fix: nullptr check missing
Browse files Browse the repository at this point in the history
add nullptr check

pms: Bug-289175
  • Loading branch information
kegechen authored and deepin-bot[bot] committed Dec 4, 2024
1 parent 00584ef commit 06dedd1
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,14 @@ PersonalizationWindowContext *DTreeLandPlatformWindowInterface::getWindowContext
return nullptr;
}

if (!waylandWindow->waylandSurface()) {
qWarning() << "waylandSurface is nullptr!!!";
return nullptr;
}

auto surface = waylandWindow->waylandSurface()->object();
if (!surface) {
qWarning() << "waylandSurface is nullptr!!!";
qWarning() << "wl_surface is nullptr!!!";
return nullptr;
}

Expand Down

0 comments on commit 06dedd1

Please sign in to comment.