Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0029981Openbravo ERP09. Financial managementpublic2015-05-20 13:162015-05-26 11:55
inigosanchez 
aferraz 
immediateminorhave not tried
closedfixed 
5
pi 
3.0PR15Q1.5 
vmromanos
Core
Production - Confirmed Stable
2014-09-23
3.0PR14Q4
https://code.openbravo.com/erp/devel/pi/rev/179d97ee602d [^]
No
0029981: NPE Error raised when a "Recieved From" value is filled in Add Payment P&E window
NPE Error raised when a "Recieved From" value is filled in Add Payment P&E window.This happens when is not exists a payment method.
- As group admin go to [Financial Account] window. Select "Cuenta de Banco".
- Add new Transaction and press "+" selector to open "Add Payment" P&E Window.
- In "Received From" field press in the magnifying glass.
- Select "Sl Rapid, SA" and press OK.

NPE Error is thrown in a popup: org.openbravo.base.exception.OBException: java.lang.NullPointerException
Approved
blocks defect 0029942 closed aferraz NPE Error raised when a "Recieved From" value is filled in Add Payment P&E window 
Issue History
2015-05-22 12:32aferrazTypedefect => backport
2015-05-22 12:32aferrazTarget Version => 3.0PR15Q1.5
2015-05-22 12:33aferrazTag Attached: Approved
2015-05-26 11:54hgbotCheckin
2015-05-26 11:54hgbotNote Added: 0077748
2015-05-26 11:54hgbotStatusscheduled => resolved
2015-05-26 11:54hgbotResolutionopen => fixed
2015-05-26 11:54hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR15Q1.5/rev/07cd355eb8820d9a6b99e9e21ec21e5fd797e462 [^]
2015-05-26 11:55vmromanosReview Assigned To => vmromanos
2015-05-26 11:55vmromanosNote Added: 0077752
2015-05-26 11:55vmromanosStatusresolved => closed

Notes
(0077748)
hgbot   
2015-05-26 11:54   
Repository: erp/backports/3.0PR15Q1.5
Changeset: 07cd355eb8820d9a6b99e9e21ec21e5fd797e462
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Wed May 20 14:06:47 2015 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR15Q1.5/rev/07cd355eb8820d9a6b99e9e21ec21e5fd797e462 [^]

Fixes issue 29981: NPE in Add Payment process request

When selecting a business partner with the magnifying glass in Add Payment process request, which does not match to the type of the document (a Vendor when the type is Received In); the payment method of the business partner was null and when accessing to its id, a NPE was raised.
Now, if payment method is null will be checked.

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/actionHandler/ReceivedFromPaymentMethodActionHandler.java
---
(0077752)
vmromanos   
2015-05-26 11:55   
Code review + testing OK