Description:modify dfx crash

Match-id-6194aaf57397f7bc261434cd873c0e7adf5713ca
This commit is contained in:
xxxx
2022-07-04 17:39:31 +08:00
parent fc90140a1c
commit ae4dd30c76
+5
View File
@@ -46,6 +46,11 @@ namespace {
bool HiDumper::HiDump(const std::vector<std::string>& args, std::string& result)
{
if (args.empty()) {
DHLOGE("args is empty");
return false;
}
result.clear();
int32_t argsSize = static_cast<int32_t>(args.size());
for (int32_t i = 0; i < argsSize; i++) {