lib/jss/api_object/categorizable.rb in ruby-jss-0.11.0b2 vs lib/jss/api_object/categorizable.rb in ruby-jss-0.11.0b3

- old
+ new

@@ -188,10 +188,10 @@ # def parse_category if @init_data[:category] @category_name = @init_data[:category] @category_id = JSS::Category.category_id_from_name @category_name - elsif @init_data[:general][:category] + elsif @init_data[:general] && @init_data[:general][:category] @category_name = @init_data[:general][:category][:name] @category_id = @init_data[:general][:category][:id] end @category_data_style = OLD_STYLE_CATEGORY_CLASSES.include?(self.class) ? :old : :new @category_name = nil if @category_name.to_s.casecmp(NO_CATEGORY_NAME).zero?