From 728e60ce8431fe5a70e44a1da2d4835425ce83a5 Mon Sep 17 00:00:00 2001 From: pei <ayp199645aabb@qq.com> Date: 星期五, 29 三月 2024 11:55:44 +0800 Subject: [PATCH] 处理可能会出现的空指针异常 --- src/main/java/com/genersoft/iot/vmp/service/impl/PlatformServiceImpl.java | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/service/impl/PlatformServiceImpl.java b/src/main/java/com/genersoft/iot/vmp/service/impl/PlatformServiceImpl.java index 122441b..06c621e 100755 --- a/src/main/java/com/genersoft/iot/vmp/service/impl/PlatformServiceImpl.java +++ b/src/main/java/com/genersoft/iot/vmp/service/impl/PlatformServiceImpl.java @@ -43,12 +43,11 @@ import javax.sip.ResponseEvent; import javax.sip.PeerUnavailableException; import javax.sip.SipException; -import javax.sip.SipFactory; -import javax.sip.address.Address; -import javax.sip.address.SipURI; -import javax.sip.header.*; -import javax.sip.message.Request; import java.text.ParseException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.UUID; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -392,7 +391,6 @@ ()-> registerTask(platform, null), userSetting.getRegisterAgainAfterTime() * 1000); } - } } -- Gitblit v1.8.0