Bugfix NPE in ClientAssociation#close()

Added null check for reportListener
pull/35/head
SteffenBrauns 2 years ago committed by GitHub
parent f9f34cde0c
commit 6d8859f6f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2110,15 +2110,17 @@ public final class ClientAssociation {
closed = true;
acseAssociation.close();
lastIOException = e;
Thread t1 =
new Thread(
new Runnable() {
@Override
public void run() {
reportListener.associationClosed(lastIOException);
}
});
t1.start();
if (reportListener != null) {
Thread t1 =
new Thread(
new Runnable() {
@Override
public void run() {
reportListener.associationClosed(lastIOException);
}
});
t1.start();
}
MMSpdu mmsPdu = new MMSpdu();
mmsPdu.setConfirmedRequestPDU(new ConfirmedRequestPDU());

Loading…
Cancel
Save