diff --git a/lib/stylesheet/css_style_sheet.rb b/lib/stylesheet/css_style_sheet.rb
index <HASH>..<HASH> 100644
--- a/lib/stylesheet/css_style_sheet.rb
+++ b/lib/stylesheet/css_style_sheet.rb
@@ -106,6 +106,7 @@ module Stylesheet
     end
 
     def request_content
+      return "" if inline_css?
       raise InvalidLocationError unless location && location.valid?
       request.get(location.href)
     end
diff --git a/spec/css_style_sheet_spec.rb b/spec/css_style_sheet_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/css_style_sheet_spec.rb
+++ b/spec/css_style_sheet_spec.rb
@@ -137,6 +137,14 @@ describe CssStyleSheet do
       }.not_to raise_error
     end
 
+    it "doesn't fetch for nil inline styles" do
+      sheet = CssStyleSheet.new(content: nil)
+
+      expect {
+        sheet.css_rules.map {|r| r.content }
+      }.not_to raise_error
+    end
+
   end
 
   describe "#css_rules" do
don't fetch content for nil inline styles