Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0005476Openbravo ERPC. Securitypublic2008-10-09 10:012009-04-21 11:07
villind 
Hennadzi 
normalminorhave not tried
closedfixed 
5
2.40 
 
Core
No
0005476: Null pointer accress in "CopyFromInvoice" exception handler
- Catch block uses un-initialized OBError variable
- Catch block prints stack trace to standard err instead of logging it
See the attached patch
No tags attached.
depends on backport 0005478 closed Hennadzi Null pointer accress in "CopyFromInvoice" exception handler 
diff CopyFromInvoice-Nullpointer-fix.diff (777) 2008-10-09 10:01
https://issues.openbravo.com/file_download.php?file_id=312&type=bug
Issue History
2008-10-09 10:01villindNew Issue
2008-10-09 10:01villindAssigned To => cromero
2008-10-09 10:01villindsf_bug_id0 => 2154624
2008-10-09 10:01villindFile Added: CopyFromInvoice-Nullpointer-fix.diff
2008-10-09 10:01villindRegression testing => No
2008-10-09 10:05svnbotCheckin
2008-10-09 10:05svnbotNote Added: 0009476
2008-10-09 10:05svnbotStatusnew => resolved
2008-10-09 10:05svnbotResolutionopen => fixed
2008-10-09 10:05svnbotsvn_revision => 8445
2008-10-09 10:12cromeroStatusresolved => new
2008-10-09 10:12cromeroResolutionfixed => open
2008-10-09 10:12cromeroStatusnew => scheduled
2008-10-09 10:12cromerofix_in_branch => trunk
2008-11-10 13:04cromeroAssigned Tocromero => rafaroda
2008-11-13 21:56rafarodaAssigned Torafaroda => Dowid
2008-11-13 23:56rafarodaAssigned ToDowid => Hennadzi
2008-12-12 14:36svnbotCheckin
2008-12-12 14:36svnbotNote Added: 0011245
2008-12-12 14:36svnbotStatusscheduled => resolved
2008-12-12 14:36svnbotResolutionopen => fixed
2008-12-12 14:36svnbotsvn_revision8445 => 11157
2008-12-12 15:06shuehnerStatusresolved => new
2008-12-12 15:06shuehnerResolutionfixed => open
2008-12-12 15:06shuehnerNote Added: 0011247
2008-12-12 15:07shuehnerNote Added: 0011248
2008-12-12 15:24svnbotCheckin
2008-12-12 15:24svnbotNote Added: 0011251
2008-12-12 15:24svnbotStatusnew => resolved
2008-12-12 15:24svnbotResolutionopen => fixed
2008-12-12 15:24svnbotsvn_revision11157 => 11159
2009-04-21 11:07psarobeStatusresolved => closed

Notes
(0009476)
svnbot   
2008-10-09 10:05   
Repository: openbravo
Revision: 8445
Author: villind
Date: 2008-10-09 10:05:04 +0200 (Thu, 09 Oct 2008)

Fixes issue 5476. Proper exception handling in copuFromInvoice.processButton()

---
U branches/bonware/r2.40/src/org/openbravo/erpCommon/ad_actionButton/CopyFromInvoice.java
---

https://dev.openbravo.com/websvn/openbravo/?rev=8445&sc=1 [^]
(0011245)
svnbot   
2008-12-12 14:36   
Repository: openbravo
Revision: 11157
Author: hennadzi
Date: 2008-12-12 14:36:13 +0100 (Fri, 12 Dec 2008)

Fixed bug 0005476: Null pointer accress in "CopyFromInvoice" exception handler
 

---
U trunk/src/org/openbravo/erpCommon/ad_actionButton/CopyFromInvoice.java
---

https://dev.openbravo.com/websvn/openbravo/?rev=11157&sc=1 [^]
(0011247)
shuehner   
2008-12-12 15:06   
Your commit only addresses the first line of the issue (fix the NPE) it does not address the better logging. Can you please recheck and compare the commit with the patch attached to the issue?
(0011248)
shuehner   
2008-12-12 15:07   
Same note applies to the backport to 2.40 as well.
(0011251)
svnbot   
2008-12-12 15:24   
Repository: openbravo
Revision: 11159
Author: hennadzi
Date: 2008-12-12 15:24:49 +0100 (Fri, 12 Dec 2008)

Fixed bug 0005476: Null pointer accress in "CopyFromInvoice" exception handler

---
U trunk/src/org/openbravo/erpCommon/ad_actionButton/CopyFromInvoice.java
---

https://dev.openbravo.com/websvn/openbravo/?rev=11159&sc=1 [^]