beanit / iec61850bean

A Java IEC 61850 MMS stack for clients and servers.
https://www.beanit.com/iec-61850/
Apache License 2.0
139 stars 80 forks source link

Possible NullPointerException while closing a ClientAssociation (when reportListener == null) #18

Closed medoctron closed 3 years ago

medoctron commented 3 years ago

Hi,

in com.beanit.iec61850bean.ClientAssociation.ClientReceiver.close(IOException) while closing the thread t1 it does not check if the reportListener is null.

In comparison to com.beanit.iec61850bean.ClientAssociation.ClientReceiver.disconnect() where it's correctly handled.

Version: com.beanit/iec61850bean/1.9.0

medoctron commented 3 years ago

Please check #10 first - i made a local mistake by creating a new branch from my master with changes for this issue.

Sorry!