Skip to content

Commit 01a7c81

Browse files
committed
Merge pull request #100738 from beicause/fix-crash-one-click-deploy
Fix crash when using one-click deploy
2 parents b77fde8 + 8f03548 commit 01a7c81

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

editor/editor_run.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,9 @@ void EditorRun::stop() {
285285
}
286286

287287
OS::ProcessID EditorRun::get_current_process() const {
288+
if (pids.front() == nullptr) {
289+
return 0;
290+
}
288291
return pids.front()->get();
289292
}
290293

0 commit comments

Comments
 (0)