Null pointer exception when Product has not Attribute set configured and costing level is batch
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"
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.