From c69931b370c2570d504c4fba507e58fd5856cc85 Mon Sep 17 00:00:00 2001 From: Tim Panton Date: Fri, 1 Apr 2022 17:32:26 +0200 Subject: [PATCH] Bump to 1.1.2 and added a little protection. --- pom.xml | 2 +- .../java/com/ipseorama/slice/SingleThreadNioIceEngine.java | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 0e9b76f..dc6974a 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.ipseorama slice - 1.1.1 + 1.1.2 jar diff --git a/src/main/java/com/ipseorama/slice/SingleThreadNioIceEngine.java b/src/main/java/com/ipseorama/slice/SingleThreadNioIceEngine.java index 4ed1c48..895e454 100644 --- a/src/main/java/com/ipseorama/slice/SingleThreadNioIceEngine.java +++ b/src/main/java/com/ipseorama/slice/SingleThreadNioIceEngine.java @@ -64,6 +64,7 @@ public synchronized void start(Selector s, StunTransactionManager tm) { _transM = tm; RTCIceTransport transP = tm.getTransport(); if (transP != null) { + Log.verb("we have a transport to work with"); EventHandler chain = transP.onstatechange; transP.onstatechange = (data) -> { if (chain != null) { @@ -90,6 +91,8 @@ public synchronized void start(Selector s, StunTransactionManager tm) { break; } }; + } else { + throw new java.lang.IllegalStateException("Ice engine must have a transport"); } if ((_selector == null) || (_transM == null)) {