Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0040465
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 09. Financial managementminorhave not tried2019-03-27 11:242019-05-21 15:16
ReportercaristuView Statuspublic 
Assigned ToAtulOpenbravo 
PriorityhighResolutionfixedFixed in Version3.0PR19Q3
StatusclosedFix in branchFixed in SCM revisiona1661bb0744d
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned ToSandrahuguet
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0040465: NPE is thrown in SE_Payment_BPartner callout

DescriptionA 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 Reproduce1) 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.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0030954 closedaferraz NPE in Payment In/Out when selecting a BP with no default payment method or financial account 

-  Notes
(0110710)
AtulOpenbravo (developer)
2019-03-28 03:47

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 (developer)
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
---
(0110958)
Sandrahuguet (developer)
2019-04-02 09:30

Code review + testing OK
(0111956)
hudsonbot (developer)
2019-05-21 15:16

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/9b8f37d9d85e [^]
Maturity status: Test

- 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


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker