Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0020058 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] 04. Warehouse management | major | always | 2012-03-20 11:46 | 2012-04-02 06:11 | |||
Reporter | vmromanos | View Status | public | |||||
Assigned To | dmiguelez | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | pi | Fixed in SCM revision | 72ef117e9d71 | |||
Projection | none | ETA | none | Target Version | ||||
OS | Linux 32 bit | Database | PostgreSQL | Java version | 1.6.0_12 | |||
OS Version | Debian 5.0 | Database version | 8.3.8 | Ant version | 1.7.0 | |||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | ||||||||
OBNetwork customer | No | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0020058: NullPointerException in SL_Requisition_BPartner_PriceList callout | |||||||
Description | The SL_Requisition_BPartner_PriceList callout throws a NullPointerException in case the Business Partner has not defined a Price List. a3196480 1093170 [http-8080-1] ERROR org.openbravo.erpCommon.ad_callouts.SL_Requisition_BPartner_PriceList - Error captured: java.lang.NullPointerException at org.openbravo.erpCommon.ad_callouts.SL_Requisition_BPartner_PriceList.printPage(SL_Requisition_BPartner_PriceList.java:85) at org.openbravo.erpCommon.ad_callouts.SL_Requisition_BPartner_PriceList.doPost(SL_Requisition_BPartner_PriceList.java:56) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at org.openbravo.base.HttpBaseServlet.serviceInitialized(HttpBaseServlet.java:225) | |||||||
Steps To Reproduce | Go to Requisition Window Select USA org Select Creditor Business Partner (which doesn't have a Price List) The NPE is thrown | |||||||
Proposed Solution | strResult.append("new Array(\"inpmPricelistId\", \"" + bPartner.getPurchasePricelist().getId() + "\"),"); strResult.append("new Array(\"inpcCurrencyId\", \"" + bPartner.getPurchasePricelist().getCurrency().getId() + "\")"); check bPartner.getPurchasePricelist() is not null | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0046559) dmiguelez (viewer) 2012-03-20 13:56 |
Test Plan: Go to Requisition Window Select USA org Select Creditor Business Partner (which doesn't have a Price List) Check that not NPE is thrown in the console |
(0046640) hgbot (developer) 2012-03-22 10:21 |
Repository: erp/devel/pi Changeset: 72ef117e9d711114da81e23b393cfb840af36137 Author: David Miguelez <david.miguelez <at> openbravo.com> Date: Tue Mar 20 13:56:02 2012 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/72ef117e9d711114da81e23b393cfb840af36137 [^] Fixes issue 20058: Checks for a possible null pointer exception when selecting PriceList --- M src/org/openbravo/erpCommon/ad_callouts/SL_Requisition_BPartner_PriceList.java --- |
(0046641) vmromanos (viewer) 2012-03-22 10:22 |
code review + testing OK |
(0047199) hudsonbot (viewer) 2012-04-02 06:11 |
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/7814864461ac [^] Maturity status: Test |
![]() |
|||
Date Modified | Username | Field | Change |
2012-03-20 11:46 | vmromanos | New Issue | |
2012-03-20 11:46 | vmromanos | Assigned To | => dmiguelez |
2012-03-20 11:46 | vmromanos | Modules | => Core |
2012-03-20 11:46 | vmromanos | OBNetwork customer | => No |
2012-03-20 11:46 | vmromanos | Relationship added | related to 0018658 |
2012-03-20 13:15 | dmiguelez | Status | new => scheduled |
2012-03-20 13:15 | dmiguelez | fix_in_branch | => pi |
2012-03-20 13:56 | dmiguelez | Note Added: 0046559 | |
2012-03-22 10:21 | hgbot | Checkin | |
2012-03-22 10:21 | hgbot | Note Added: 0046640 | |
2012-03-22 10:21 | hgbot | Status | scheduled => resolved |
2012-03-22 10:21 | hgbot | Resolution | open => fixed |
2012-03-22 10:21 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/72ef117e9d711114da81e23b393cfb840af36137 [^] |
2012-03-22 10:22 | vmromanos | Note Added: 0046641 | |
2012-03-22 10:22 | vmromanos | Status | resolved => closed |
2012-04-02 06:11 | hudsonbot | Checkin | |
2012-04-02 06:11 | hudsonbot | Note Added: 0047199 |
Copyright © 2000 - 2009 MantisBT Group |