aboutsummaryrefslogtreecommitdiffstats
path: root/Source/Stream.php
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Stream.php')
-rw-r--r--Source/Stream.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/Stream.php b/Source/Stream.php
index dc9f4f3..da686d1 100644
--- a/Source/Stream.php
+++ b/Source/Stream.php
@@ -259,7 +259,12 @@ abstract class Stream implements IStream\Stream, Event\Listenable
final public function close()
{
$streamName = $this->getStreamName();
- $name = md5($streamName);
+
+ if (null === $streamName) {
+ return;
+ }
+
+ $name = md5($streamName);
if (!isset(self::$_register[$name])) {
return;