Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0040465 | Openbravo ERP | 09. Financial management | public | 2019-03-27 11:24 | 2019-05-21 15:16 |
|
Reporter | caristu | |
Assigned To | AtulOpenbravo | |
Priority | high | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0PR19Q3 | |
Merge Request Status | |
Review Assigned To | Sandrahuguet |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0040465: NPE is thrown in SE_Payment_BPartner callout |
Description | A NPE is thrown in SE_Payment_BPartner callout after clearing the "Received From" field in "Payment In" window:
...
Caused by: java.lang.NullPointerException
at org.openbravo.erpCommon.ad_callouts.SE_Payment_BPartner.execute(SE_Payment_BPartner.java:51) ~[classes/:?]
at org.openbravo.erpCommon.ad_callouts.SimpleCallout.executeSimpleCallout(SimpleCallout.java:93) ~[classes/:?]
at org.openbravo.client.application.window.FormInitializationComponent.runCallouts(FormInitializationComponent.java:1504) ~[classes/:?]
... 52 more
|
Steps To Reproduce | 1) Go the [Payment In] window
2) Select a BP in the "Received From" field
3) Clear the "Received From" field. Note that the NPE is thrown. |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0030954 | | closed | aferraz | NPE in Payment In/Out when selecting a BP with no default payment method or financial account |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2019-03-27 11:24 | caristu | New Issue | |
2019-03-27 11:24 | caristu | Assigned To | => Triage Finance |
2019-03-27 11:24 | caristu | Modules | => Core |
2019-03-27 11:24 | caristu | Triggers an Emergency Pack | => No |
2019-03-27 11:25 | caristu | Relationship added | related to 0030954 |
2019-03-27 11:42 | Sandrahuguet | Assigned To | Triage Finance => AtulOpenbravo |
2019-03-27 18:34 | AtulOpenbravo | Status | new => scheduled |
2019-03-28 03:47 | AtulOpenbravo | Note Added: 0110710 | |
2019-04-02 09:29 | hgbot | Checkin | |
2019-04-02 09:29 | hgbot | Note Added: 0110957 | |
2019-04-02 09:29 | hgbot | Status | scheduled => resolved |
2019-04-02 09:29 | hgbot | Resolution | open => fixed |
2019-04-02 09:29 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/a1661bb0744d6fb2207d83c217f8ba14a6b8f4e8 [^] |
2019-04-02 09:30 | Sandrahuguet | Review Assigned To | => Sandrahuguet |
2019-04-02 09:30 | Sandrahuguet | Note Added: 0110958 | |
2019-04-02 09:30 | Sandrahuguet | Status | resolved => closed |
2019-04-02 09:30 | Sandrahuguet | Fixed in Version | => 3.0PR19Q3 |
2019-05-21 15:16 | hudsonbot | Checkin | |
2019-05-21 15:16 | hudsonbot | Note Added: 0111956 | |
Notes |
|
|
Test Plan
- Login and F&B International Group admin role.
- Navigate to Payment In, select business partner in "Received From" field.
- Set "Received From" field as blank again.
- Realize that in console logs, NPE is not thrown any more. |
|
|
(0110957)
|
hgbot
|
2019-04-02 09:29
|
|
Repository: erp/devel/pi
Changeset: a1661bb0744d6fb2207d83c217f8ba14a6b8f4e8
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Thu Mar 28 07:19:45 2019 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/a1661bb0744d6fb2207d83c217f8ba14a6b8f4e8 [^]
Fixes Issue 0040465: NPE is thrown in SE_Payment_BPartner callout
** Use StringUtils to avoid NPE and check whether strcBpartnerId
is not empty before fetching default payment method & financial
account of business partner.
---
M src/org/openbravo/erpCommon/ad_callouts/SE_Payment_BPartner.java
---
|
|
|
|
|
|
|
|