From 38f4c3699d06b64128bebc7cf1e8b3125be74dc4 Mon Sep 17 00:00:00 2001
From: xzyfer <xzyfer@gmail.com>
Date: Wed, 4 Jul 2018 20:36:29 +1000
Subject: [PATCH] Fix possible bug with handling empty reference combinators

Fixes #2665
---
 src/inspect.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/inspect.cpp b/src/inspect.cpp
index bd0389224..b56fd89aa 100644
--- a/src/inspect.cpp
+++ b/src/inspect.cpp
@@ -1042,7 +1042,7 @@ namespace Sass {
       case Complex_Selector::REFERENCE:
         append_mandatory_space();
         append_string("/");
-        c->reference()->perform(this);
+        if (c->reference()) c->reference()->perform(this);
         append_string("/");
         append_mandatory_space();
       break;

