Skip to content

Commit 16f7c6d

Browse files
committed
Fix nullpointerexception
1 parent be17d18 commit 16f7c6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/red5/server/stream/AbstractClientStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public void setConnection(IStreamCapableConnection conn) {
8585
* @return Stream capable connection object
8686
*/
8787
public IStreamCapableConnection getConnection() {
88-
return conn.get();
88+
return conn != null ? conn.get() : null;
8989
}
9090

9191
/** {@inheritDoc} */

0 commit comments

Comments
 (0)