Unverified Commit b20ded04 authored by Dave Cridland's avatar Dave Cridland Committed by GitHub

Merge pull request #1017 from guusdk/OF-1481_Null-connection-in-session

OF-1481: Don't attempt to send over a non-existing connection.
parents 4a4268ed ba9ca089
...@@ -410,6 +410,11 @@ public abstract class LocalSession implements Session { ...@@ -410,6 +410,11 @@ public abstract class LocalSession implements Session {
@Override @Override
public void deliverRawText(String text) { public void deliverRawText(String text) {
if ( conn == null )
{
Log.debug( "Unable to deliver raw text in session, as its connection is null. Dropping: " + text );
return;
}
conn.deliverRawText(text); conn.deliverRawText(text);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment