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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0020058
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 04. Warehouse managementmajoralways2012-03-20 11:462012-04-02 06:11
ReportervmromanosView Statuspublic 
Assigned Todmiguelez 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchpiFixed in SCM revision72ef117e9d71
ProjectionnoneETAnoneTarget Version
OSLinux 32 bitDatabasePostgreSQLJava version1.6.0_12
OS VersionDebian 5.0Database version8.3.8Ant version1.7.0
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0020058: NullPointerException in SL_Requisition_BPartner_PriceList callout

DescriptionThe 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 ReproduceGo to Requisition Window
Select USA org
Select Creditor Business Partner (which doesn't have a Price List)
The NPE is thrown
Proposed SolutionstrResult.append("new Array(\"inpmPricelistId\", \""
              + bPartner.getPurchasePricelist().getId() + "\"),");
          strResult.append("new Array(\"inpcCurrencyId\", \""
              + bPartner.getPurchasePricelist().getCurrency().getId() + "\")");

check bPartner.getPurchasePricelist() is not null
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0018658 closeddmiguelez Requisition window shows the currency setup at Client level regardless the Organization being selected. 

-  Notes
(0046559)
dmiguelez (developer)
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 (manager)
2012-03-22 10:22

code review + testing OK
(0047199)
hudsonbot (developer)
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

- Issue History
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 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
Powered by Mantis Bugtracker