diff options
-rw-r--r-- | java/src/com/tightvnc/rfbplayer/FbsInputStream.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/java/src/com/tightvnc/rfbplayer/FbsInputStream.java b/java/src/com/tightvnc/rfbplayer/FbsInputStream.java index 6df38ddf..724ff306 100644 --- a/java/src/com/tightvnc/rfbplayer/FbsInputStream.java +++ b/java/src/com/tightvnc/rfbplayer/FbsInputStream.java @@ -106,7 +106,8 @@ class FbsInputStream extends InputStream { } public synchronized void close() throws IOException { - in.close(); + if (in != null) + in.close(); in = null; startTime = -1; timeOffset = 0; |