details:   https://code.openbravo.com/erp/devel/pi/rev/9c0d7420d284
changeset: 21244:9c0d7420d284
user:      Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
date:      Tue Oct 08 19:14:12 2013 +0200
summary:   Fixed issue 24913.Return empty result when no variants are found.

diffstat:

 src/org/openbravo/materialmgmt/ManageVariantsDS.java |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r 94d0fb151919 -r 9c0d7420d284 
src/org/openbravo/materialmgmt/ManageVariantsDS.java
--- a/src/org/openbravo/materialmgmt/ManageVariantsDS.java      Mon Oct 07 
17:17:08 2013 +0200
+++ b/src/org/openbravo/materialmgmt/ManageVariantsDS.java      Tue Oct 08 
19:14:12 2013 +0200
@@ -83,6 +83,9 @@
       prChCrit.addOrderBy(ProductCharacteristic.PROPERTY_SEQUENCENUMBER, true);
       List<ProductCharacteristic> prChs = prChCrit.list();
       int chNumber = prChs.size();
+      if (chNumber == 0) {
+        return result;
+      }
       ProductCharacteristicConf[] currentValues = new 
ProductCharacteristicConf[chNumber];
       boolean includeInResult = true;
 

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to