diff --git a/lib/fog/core/attributes.rb b/lib/fog/core/attributes.rb
index <HASH>..<HASH> 100644
--- a/lib/fog/core/attributes.rb
+++ b/lib/fog/core/attributes.rb
@@ -186,7 +186,7 @@ module Fog
       end
 
       def dup_attributes!
-        @attributes = @attributes.dup
+        @attributes = @attributes.dup if @attributes
       end
 
       private
Only dup @attributes if it's not nil