Commit cb8115f
committed
fix: add null check for connection update
Added null pointer check before updating network connection settings
to prevent potential crashes when the connection object is not found.
This ensures the application handles missing connections gracefully by
logging a warning and returning early instead of attempting to update a
non-existent connection.
Log: Fixed potential crash when updating non-existent network
connections
Influence:
1. Test network connection updates with valid and invalid UUIDs
2. Verify warning messages are logged for missing connections
3. Confirm application stability when connection objects are not found
4. Test that valid connection updates continue to work normally
fix: 添加连接更新前的空指针检查
在更新网络连接设置前添加空指针检查,防止在连接对象未找到时出现潜在崩溃。
这确保应用程序能够优雅地处理缺失的连接,通过记录警告信息并提前返回,而不
是尝试更新不存在的连接。
Log: 修复更新不存在的网络连接时可能出现的崩溃问题
Influence:
1. 测试使用有效和无效UUID更新网络连接
2. 验证缺失连接时是否正确记录警告信息
3. 确认连接对象未找到时应用程序的稳定性
4. 测试有效的连接更新功能是否正常工作
PMS: BUG-3033891 parent 80d039c commit cb8115f
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1570 | 1570 | | |
1571 | 1571 | | |
1572 | 1572 | | |
| 1573 | + | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
1573 | 1577 | | |
1574 | 1578 | | |
1575 | 1579 | | |
| |||
0 commit comments