From d9981cf01ed98b2f2e51d14e9cbd3ae1edf80f82 Mon Sep 17 00:00:00 2001 From: darkeye Date: Mon, 5 Jan 2004 12:00:00 +0000 Subject: [PATCH] fixed possible null pointer problem when destroying the object --- darkice/trunk/src/CastSink.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/darkice/trunk/src/CastSink.h b/darkice/trunk/src/CastSink.h index 09e55ae..cbec626 100644 --- a/darkice/trunk/src/CastSink.h +++ b/darkice/trunk/src/CastSink.h @@ -308,7 +308,7 @@ class CastSink : public Sink, public virtual Reporter inline virtual bool isOpen ( void ) const throw () { - return bufferedSink->isOpen(); + return bufferedSink != NULL ? bufferedSink->isOpen() : false; } /** @@ -471,6 +471,9 @@ class CastSink : public Sink, public virtual Reporter $Source$ $Log$ + Revision 1.8 2004/01/05 12:00:00 darkeye + fixed possible null pointer problem when destroying the object + Revision 1.7 2002/02/20 11:54:11 darkeye added local dump file possibility