Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0016093Openbravo ERP00. Application dictionarypublic2011-01-31 17:082011-03-15 15:36
egoitz 
alostale 
highminoralways
closedfixed 
5
2.50MP25 
2.50MP28 
Core
No
0016093: NPE when accessing a non-core window with read-only access
When accessing a non-core window with read-only access I get a
java.lang.NullPointerException
1) In a regular installation in Oracle with APRM module, login with user Openbravo.
2) With Openbravo Admin role, go to Security > Role and select Openbravo Admin role.
3) In Windows Access, select Make Payment (Payment Out) window and give it read-only
access.
4) Login and logout again with user Openbravo and Openbravo Admin role.
5) Navigate to Make Payment (Payment Out) window (see that New icon is there even if
you have read-only access )
6) Click on New icon, you get java.lang.NullPointerException error
No tags attached.
blocks defect 00158262.50MP28 closed alostale NPE when accessing a non-core window with read-only access 
Issue History
2011-03-01 13:57alostaleTypedefect => backport
2011-03-01 13:57alostalefix_in_branch => 2.50
2011-03-03 12:05hgbotCheckin
2011-03-03 12:05hgbotNote Added: 0034527
2011-03-03 12:05hgbotStatusscheduled => resolved
2011-03-03 12:05hgbotResolutionopen => fixed
2011-03-03 12:05hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.50/rev/b8065ab7c31a0ddc31b57c21823c51c1fcae6d81 [^]
2011-03-15 15:36marvintmNote Added: 0034895
2011-03-15 15:36marvintmStatusresolved => closed

Notes
(0034527)
hgbot   
2011-03-03 12:05   
Repository: erp/stable/2.50
Changeset: b8065ab7c31a0ddc31b57c21823c51c1fcae6d81
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Mar 01 15:19:39 2011 +0100
URL: http://code.openbravo.com/erp/stable/2.50/rev/b8065ab7c31a0ddc31b57c21823c51c1fcae6d81 [^]

fixed bug 16093: Do not show new button if no write access is granted

---
M src-wad/src/org/openbravo/wad/javasource.javaxml
M src/org/openbravo/erpCommon/utility/ToolBar.java
---
(0034895)
marvintm   
2011-03-15 15:36   
Works fine.