Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

发送命令时,可能会造成空指针异常 #1

Open
StarShine761 opened this issue Jul 31, 2019 · 7 comments
Open

发送命令时,可能会造成空指针异常 #1

StarShine761 opened this issue Jul 31, 2019 · 7 comments

Comments

@StarShine761
Copy link

SphDataProcess 这个类的writeData()方法
if (concurrentCom.getCurrentCmdEntity() == null) {
}
这里if判断 偶尔会造成空指针异常

@707643186
Copy link

大兄弟,这个问题你是怎么解决的?我也会遇到这个问题,偶尔会报空

@StarShine761
Copy link
Author

简单的先try catch 掉

@xiaozhangwx
Copy link

你好, 我也遇到了同样的问题,请问是要try catch 修改源码吗 在 SphDataProcess 中改吗 ?

@StarShine761
Copy link
Author

StarShine761 commented Apr 17, 2021 via email

@ChloeDimen
Copy link

ChloeDimen commented May 31, 2021

我这边下位机也是无数据返回的,但是我这边发一次数据,一直在这个写入数据的循环,导致不能发送第二次数据。
image

@ChloeDimen
Copy link

不好意思很久 没有登录邮箱了 是的 在报错的那里try catch 掉 ,不过后续我已经换掉这个框架了,因为遇到过发送命令下位机无返回数据的情况,应该是由于这套框架引起的 在 2021-04-08 18:08:26,"小张哥" @.***> 写道: 你好, 我也遇到了同样的问题,请问是要try catch 修改源码吗 在 SphDataProcess 中改吗 ? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

新的框架在哪?

@StarShine761
Copy link
Author

StarShine761 commented Jun 16, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants