Null pointer exception when Product has not Attribute set configured and costing level is batch

Description

Need to handle null pointer for Attribute set and provide user understandable exception instead of blank message in case of NPE.

Currently system show bellow message when NPE is due to missing attribute set.

"org.adempiere.exceptions.AdempiereException: Error: :"
Instead of it must say
"Product <key> need to configure Attribute set"

Environment

None

Activity

Show:
Carlos Ruiz
April 28, 2018, 2:38 PM

https://bitbucket.org/idempiere/idempiere/commits/d50195a

After further review we think that the case of a product without attribute set in a category with batch costing is OK - same for products without attribute set when the accounting schema is configured to use lot.

Fixed

Assignee

Carlos Ruiz

Reporter

Deepak Pansheriya

Labels

None

Tested By

None

Components

Priority

Major