Solidus Version: 3.2.5
To Reproduce
- create a product
- delete the master price in the default currency (config.currency)
- attempt creating a new variant
- see the exception:
undefined method 'attributes' for nil:NilClass pointing to
|
@object.prices.build(@object.product.master.default_price.attributes.except("id", "created_at", "updated_at", "deleted_at")) |
Current behavior
There's an exception.
Expected behavior
A more friendly behavior is expected.
Screenshots

Solidus Version: 3.2.5
To Reproduce
undefined method 'attributes' for nil:NilClasspointing tosolidus/backend/app/controllers/spree/admin/variants_controller.rb
Line 19 in 739b2a6
Current behavior
There's an exception.
Expected behavior
A more friendly behavior is expected.
Screenshots