lib/virtualbox/forwarded_port.rb in virtualbox-0.7.1 vs lib/virtualbox/forwarded_port.rb in virtualbox-0.7.2
- old
+ new
@@ -119,10 +119,10 @@
end
# @param [Hash] data The initial attributes to populate.
def initialize(data={})
super()
- populate_attributes(data)
+ populate_attributes(data) if !data.empty?
end
# Validates a forwarded port.
def validate
super