]> source.dussan.org Git - tigervnc.git/commitdiff
Null check.
authorwimba.com <wimba.com@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Tue, 11 Jan 2005 19:02:12 +0000 (19:02 +0000)
committerwimba.com <wimba.com@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Tue, 11 Jan 2005 19:02:12 +0000 (19:02 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2542 3789f03b-4d11-0410-bbf8-ca57d06f2519

java/src/com/tightvnc/rfbplayer/FbsInputStream.java

index 6df38ddfc56392f8c82f62b5a338dd0ea53998cf..724ff3066ff2cacf89347b96a986cf2b34643216 100644 (file)
@@ -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;