Skip to content

Commit ddf4b77

Browse files
committed
fix null pointer exception
1 parent 4c50b11 commit ddf4b77

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/io/antmedia/AntMediaApplicationAdapter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1803,7 +1803,8 @@ public void closeRTMPStreams()
18031803
synchronized (adaptors)
18041804
{
18051805
for (MuxAdaptor adaptor : adaptors) {
1806-
if(adaptor.getBroadcast().getType().equals(AntMediaApplicationAdapter.LIVE_STREAM)) {
1806+
Broadcast broadcast = adaptor.getBroadcast();
1807+
if(broadcast != null && broadcast.getType().equals(AntMediaApplicationAdapter.LIVE_STREAM)) {
18071808

18081809
ClientBroadcastStream broadcastStream = adaptor.getBroadcastStream();
18091810
if (broadcastStream != null) {

0 commit comments

Comments
 (0)