Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0022774Openbravo ERP09. Financial managementpublic2013-01-11 09:282013-02-04 13:55
VictorVillar 
jecharri 
urgentmajoralways
closedfixed 
5
pi 
3.0MP20 
VictorVillar
Core
No
0022774: Null Pointer Exception when you post a goods movement with movement qty = 0
Null Pointer Exception when you post a goods movement with movement qty = 0
As group Admin role,
Go to Goods Movements window
   Create a new register: F&B US Inc.
     Navigate to Lines tab:
         Product: Cerveza Ale
         Movement qty = 0
           from: WC- 0-0-1
           to: WC- 0-0-0
Process it adn post it.
An error message appears: Process failed during execution

Checking the log: Null Pointer Exception
Because on DocMovement.java Line: 198 is not any IF condition checking if 'dr' is null, the same as 'cr'.
Looking at DocInOut.java where exists these conditions.
No tags attached.
Issue History
2013-01-11 09:28VictorVillarNew Issue
2013-01-11 09:28VictorVillarAssigned To => dmiguelez
2013-01-11 09:28VictorVillarModules => Core
2013-01-11 09:28VictorVillarResolution time => 1360710000
2013-01-11 09:28VictorVillarTriggers an Emergency Pack => No
2013-01-11 09:30VictorVillarIssue Monitored: networkb
2013-01-11 10:10naiaramartinezAssigned Todmiguelez => jonalegriaesarte
2013-01-28 13:55jonalegriaesarteAssigned Tojonalegriaesarte => jecharri
2013-01-29 13:32hgbotCheckin
2013-01-29 13:32hgbotNote Added: 0055945
2013-01-29 13:32hgbotStatusnew => resolved
2013-01-29 13:32hgbotResolutionopen => fixed
2013-01-29 13:32hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/c23ede3e675577b08c00218af62017aec52e65a5 [^]
2013-01-31 09:59jecharriNote Added: 0055995
2013-02-01 22:28hudsonbotCheckin
2013-02-01 22:28hudsonbotNote Added: 0056081
2013-02-04 13:55VictorVillarReview Assigned To => VictorVillar
2013-02-04 13:55VictorVillarNote Added: 0056131
2013-02-04 13:55VictorVillarStatusresolved => closed

Notes
(0055945)
hgbot   
2013-01-29 13:32   
Repository: erp/devel/pi
Changeset: c23ede3e675577b08c00218af62017aec52e65a5
Author: Javier Etxarri <javier.echarri <at> openbravo.com>
Date: Tue Jan 29 13:31:32 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/c23ede3e675577b08c00218af62017aec52e65a5 [^]

Fixes issue 22774: Null Pointer Exception when
you post a goods movement with movement qty = 0

---
M src-db/database/model/functions/M_MOVEMENT_POST.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/erpCommon/ad_forms/DocMovement.java
---
(0055995)
jecharri   
2013-01-31 09:59   
Test cases:
-verify that currently you can not process a "goods movement" if you have one line with qty = 0. Check it when you have only one line or when you have more lines and one of them has qty = 0

-If you come from old version and you were able to process, verify that now you can post if you have more than the qty=0 line.
(0056081)
hudsonbot   
2013-02-01 22:28   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/b070aa80fc76 [^]

Maturity status: Test
(0056131)
VictorVillar   
2013-02-04 13:55   
Verified