Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0051042Openbravo ERP01. General setuppublic2022-11-30 14:302023-01-09 17:10
ngarcia 
francisco_ofarril 
urgentmajoralways
closedfixed 
5
 
PR23Q1 
AugustoMauch
Core
No
0051042: NullPointerException when opening Open/Close Period Control window if it is included in Role - Window Access - Tab Access
NullPointerException when opening Open/Close Period Control window if it is included in Role - Window Access - Tab Access
As group admin role:
   Go to Role window and select your role
   In the Window Access tab select Open/Close Period Control
   Add Period Control - Open/Close Period Control in Tab Access tab

   Log out and log in
   Open Open/Close Period Control window

   Check a Pop-up appears with the following error:

      Error occured: org.openbravo.base.exception.OBException: java.lang.NullPointerException

   The log shows:

   ERROR org.openbravo.client.kernel.KernelUtils - org.openbravo.base.exception.OBException: java.lang.NullPointerException
java.lang.IllegalStateException: org.openbravo.base.exception.OBException: java.lang.NullPointerException
    at org.openbravo.client.kernel.BaseActionHandler.execute(BaseActionHandler.java:64) ~[classes/:?]
    at org.openbravo.client.application.WindowSettingsActionHandler$Proxy$_$$_WeldClientProxy.execute(Unknown Source) ~[classes/:?]
    at org.openbravo.client.kernel.KernelServlet.processActionRequest(KernelServlet.java:319) [classes/:?]
    at org.openbravo.client.kernel.KernelServlet.doGet(KernelServlet.java:208) [classes/:?]
    ...
Caused by: org.openbravo.base.exception.OBException: java.lang.NullPointerException
    at org.openbravo.client.application.WindowSettingsActionHandler.execute(WindowSettingsActionHandler.java:110) ~[classes/:?]
    at org.openbravo.client.kernel.BaseActionHandler.execute(BaseActionHandler.java:59) ~[classes/:?]
    ... 50 more
Caused by: java.lang.NullPointerException
    at org.openbravo.client.application.WindowSettingsActionHandler.getFieldLevelRoles(WindowSettingsActionHandler.java:179) ~[classes/:?]
    at org.openbravo.client.application.WindowSettingsActionHandler.execute(WindowSettingsActionHandler.java:102) ~[classes/:?]
    at org.openbravo.client.kernel.BaseActionHandler.execute(BaseActionHandler.java:59) ~[classes/:?]
    ... 50 more

The status field does not have a related column and the following call fails

field.getColumn().isUpdatable()
No tags attached.
Issue History
2022-11-30 14:30ngarciaNew Issue
2022-11-30 14:30ngarciaAssigned To => Triage Omni OMS
2022-11-30 14:30ngarciaModules => Core
2022-11-30 14:30ngarciaTriggers an Emergency Pack => No
2022-12-05 16:28francisco_ofarrilAssigned ToTriage Omni OMS => francisco_ofarril
2022-12-06 22:00francisco_ofarrilStatusnew => acknowledged
2022-12-09 12:08hgbotNote Added: 0144494
2022-12-09 12:31vmromanosStatusacknowledged => scheduled
2022-12-27 10:48aferrazReview Assigned To => AugustoMauch
2023-01-09 17:10hgbotNote Added: 0145214
2023-01-09 17:10hgbotResolutionopen => fixed
2023-01-09 17:10hgbotStatusscheduled => closed
2023-01-09 17:10hgbotFixed in Version => PR23Q1
2023-01-09 17:10hgbotNote Added: 0145215

Notes
(0144494)
hgbot   
2022-12-09 12:08   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/782 [^]
(0145214)
hgbot   
2023-01-09 17:10   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/782 [^]
(0145215)
hgbot   
2023-01-09 17:10   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: b6f038e37986526e7b91264eb07c0166f521ddfe
Author: francisco.ofarril87 <francisco.ofarril@openbravo.com>
Date: 09-01-2023 17:10:09
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/b6f038e37986526e7b91264eb07c0166f521ddfe [^]

Fixed ISSUE-51042: NullPointerException when opening Open/Close Period Control window if it is included in Role - Window Access - Tab Access

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/WindowSettingsActionHandler.java
---